Results 1 to 3 of 3
  1. #1
    PrimaryKey is offline Advanced Beginner
    Windows 7 64bit Access 2016
    Join Date
    Feb 2018
    Posts
    42

    Requery from navigation form

    Hello All,

    I have an Orders form that uses a popup to allow users to add items to the order. When clicking the "Save & Close" button, I have a VBA event that requeries the OrderItems subform on the Orders main form so that the list of products added to the order is refreshed.



    A few days ago I added a main navigation form and added all the forms to the main navigation, and now the requery stopped working. Do I need to include the navigation form in the form-path for the requery action? Such as: Forms!NavForm.NavSubform.OrderForm.OrderItemsSubfo rm.Form.Requery

  2. #2
    Minty is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    Sep 2017
    Location
    UK - Wiltshire
    Posts
    3,157
    Yes - but be aware that the forms on the inbuilt navigation form are loaded as sub forms, and are only loaded on demand, so they aren't there if not the current form.
    It's why a lot of us don't use the inbuilt navigation form, as they are a pain to reference,
    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 ↓↓

  3. #3
    CJ_London is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2015
    Posts
    11,933
    Do I need to include the navigation form in the form-path for the requery action? Such as: Forms!NavForm.NavSubform.OrderForm.OrderItemsSubfo rm.Form.Requery
    depends on where your code is. If it is in the orderform, then you can just use

    me.OrderItemsSubform.requery

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

Similar Threads

  1. Replies: 3
    Last Post: 10-03-2022, 12:39 PM
  2. Replies: 2
    Last Post: 07-10-2016, 01:53 PM
  3. Replies: 5
    Last Post: 03-02-2015, 02:14 PM
  4. Replies: 5
    Last Post: 11-04-2014, 08:13 AM
  5. Replies: 12
    Last Post: 10-23-2014, 02:08 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