Results 1 to 3 of 3
  1. #1
    katskin12 is offline Novice
    Windows 10 Office 365
    Join Date
    Apr 2020
    Posts
    1

    Looking to copy data entered in form to multiple records in the same table.

    Hi,
    I am creating a table to track part serialization. It looks like below:
    Serial Number Date Work Order Part Number Heat Treatment Order Quantity
    I created a form to enter that data. The serial number field is the autonumber field used as the record primary. I want to copy data entered in the form in as many records as the order quantity since the information is exactly the same, I just need to tie it to unique serial numbers. Ex. If I have 3 items in the WO, I want to fill out the form and it would result in a table of:
    Serial Number Date Work Order Part Number heat treatment order quantity
    1 4/29/20 1234 Part 1 H1234 3
    2 4/29/29 1234 Part 1 H1234 3
    3 4/29/20 1234 Part 1 H1234 3



    Is there a way to do that? Thank you.

  2. #2
    orange's Avatar
    orange is offline Moderator
    Windows 10 Access 2016
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,870
    The serial number field is the autonumber field used as the record primary.
    Do not use the autonumber field for anything other than the PK for the database system itself.

    Use your own field and review the concept

    SerialNo =Dmax(SerialNo) +1 to get sequential serial numbers.

  3. #3
    Gicu's Avatar
    Gicu is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jul 2015
    Location
    Kelowna, BC, Canada
    Posts
    4,250
    You could do something like this, might want to move the inserts to a different event.

    Cheers,
    Attached Files Attached Files
    Vlad Cucinschi
    MS Access Developer
    http://forestbyte.com/

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 8
    Last Post: 03-25-2019, 03:39 AM
  2. Replies: 10
    Last Post: 03-12-2019, 09:18 AM
  3. Replies: 1
    Last Post: 03-21-2018, 03:32 PM
  4. Replies: 2
    Last Post: 08-15-2012, 02:21 AM
  5. Replies: 1
    Last Post: 07-26-2012, 10:51 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums