Results 1 to 2 of 2
  1. #1
    Marlene23 is offline Novice
    Windows 10 Access 2016
    Join Date
    Jan 2018
    Posts
    14

    Update records in form

    Good Day Access Experts!



    Please can someone assist me or point me in the right direction.

    I have an "Order" form where people can create orders. On the order form I have a button that opens up the delivery address details form which is a pop-up model window. This was done so that they do not have to exit out of everything and can quickly add a delivery address if needed.

    My challenge is ... the "Order" form needs to be updated once a record was added to the delivery address form.

    What is the best way to do this? Do I need to insert code in the close button of the pop-up address form?

  2. #2
    Minty is online now VIP
    Windows 10 Access 2016
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,001
    When you open a pop-up modal form, code execution on the calling form is suspended, you can you this to your benefit ; air code something like


    Code:
    Docmd.OpenForm "YourModalForm"
             ' The next line doesn't run until the pop up is closed.
    Me.Requery
    DLookup Syntax and others http://access.mvps.org/access/general/gen0018.htm
    Please use the star below the post to say thanks if we have helped !
    ↓↓ It's down here ↓↓

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

Similar Threads

  1. Replies: 3
    Last Post: 02-12-2018, 12:42 PM
  2. Replies: 2
    Last Post: 09-22-2017, 05:38 PM
  3. Replies: 3
    Last Post: 08-14-2016, 02:18 PM
  4. Replies: 2
    Last Post: 07-07-2016, 07:01 PM
  5. Replies: 3
    Last Post: 01-24-2011, 12:04 PM

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