Results 1 to 2 of 2

Thread: Copying records

  1. #1

    Thread Starter
    New Member
    Join Date
    Oct 2011
    Posts
    1

    Copying records

    Dear all,

    I have problem i have table name "WO" in oracle db i want
    "Whenever I start my program, I want it it look at all the works orders, and if any works order has a date that is exactly one month before today's date, then I want the program to display a message and create copies of those works orders with a schedule date of today's date and save it".

    how to achieve this please provide me code


    Thanks in advance.


    Here is the structure of my database


    DISCRIPTION VARCHAR2(200)
    REQ_DATE DATE
    WO_T VARCHAR2(30)
    TASK_PER VARCHAR2(50)
    ORIGINATOR VARCHAR2(70)
    REQ_DEPT VARCHAR2(70)
    EXTENSION NUMBER(10)
    CRAFT VARCHAR2(50)
    TASK_ASSG_TO VARCHAR2(70)
    SCHEDULED_DATE DATE
    SCHEDULED_FINISH_DATE DATE
    COMPLETION_DATE DATE
    ESTIMATED_HRS NUMBER(10)
    REQ_TYPE VARCHAR2(50)
    PRIORITY NUMBER(2)
    ITEM_CODE NUMBER(30)
    LOCATION VARCHAR2(70)
    SUB_LOC VARCHAR2(70)
    ADDED_DATE DATE
    QTY NUMBER(30)
    DONE_BY VARCHAR2(70)
    EMP_ID NUMBER(20)
    COMP_DU VARCHAR2(20)
    COMMENTS VARCHAR2(2000)
    PREP_BY VARCHAR2(50)
    WO_USER VARCHAR2(30)
    WO_NO NUMBER(25)
    ITEM_NAME VARCHAR2(100)

    Please also view the attached project file by following the given link

    http://www.4shared.com/file/p6ikkUDw/ITPCHR1.html

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: Copying records

    What exactly do you mean by "create copies"? Does that mean add another record to the same table or something else?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width