Results 1 to 3 of 3
  1. #1
    BFlat is offline Novice
    Windows 2K Access 2003
    Join Date
    Mar 2012
    Posts
    20

    Append additional records

    I have the following db that I've gotten help with but ran into an unforseen situation. I am tracking customers, orders, and their shipment information. Every customer can have multiple orders an devery order can have more thatn one shimpment record- that the shipper can chose to not ship the order for some reason and then decide to ship it later.



    On the customer verification form I have a button to append shipment information to an order, opening the shippent form to show the customer's name and order information. However, when I click the button it only allows me to enter one shippment record per order. If I try to create and additional shippement record the form is opened to the current shippment record. I.E. I tried to create another shippment record for Gates, Lambert where Coooers is the Discharging Facility and Caterpillar is the Admitting Facility but the current record is populated. Is there any way to get around this.
    Attached Files Attached Files

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    That's because the form opens filtered to all shipment records that are related to the selected order. Once open, need to move to a new record. Will need to manually fill in the Order_ID.

    Alternative is to open form to new record and pass the Order_ID to the form with OpenArgs and then populate the Order_ID when form opens.

    DoCmd.OpenForm "frm_Shipment", , , , acFormAdd, , Me.sub_Order!OrderID

    Then code in Shipment form Load or Current event:

    If IsNull(Me![tbl_Shippment.OrderID]) Then Me![tbl_Shippment.OrderID] = Me.OpenArgs
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    BFlat is offline Novice
    Windows 2K Access 2003
    Join Date
    Mar 2012
    Posts
    20
    Workedt great. THANKS!!!

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

Similar Threads

  1. Append only new records
    By bkirsch in forum Queries
    Replies: 11
    Last Post: 01-23-2012, 12:59 PM
  2. append records
    By sloop in forum Queries
    Replies: 2
    Last Post: 08-23-2011, 05:38 PM
  3. Append additional information to a field
    By Lorlai in forum Access
    Replies: 6
    Last Post: 07-15-2011, 11:09 AM
  4. additional detail records to be inserted
    By Mclaren in forum Reports
    Replies: 1
    Last Post: 03-16-2011, 02:10 AM
  5. Append records with attachments
    By Dawie Theron in forum Queries
    Replies: 1
    Last Post: 01-22-2010, 06:19 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