Results 1 to 3 of 3

Requery a query

  1. #1
    Ganymede is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    57

    Requery a query


    Is there a VBA command to requery a query from a form? The query I want to refresh will not be open. However, the form contains a listbox that is populated by the query.

  2. #2
    Bob Fitz is offline Access Developer
    Windows 7 32bit Access 2013
    Join Date
    May 2011
    Location
    Essex UK
    Posts
    2,102
    Try:
    Me.NameOfListBoxControl.Requery
    If this helped, please click the star at the bottom left of this posting and add to my reputation. Many thanks.
    Not everyone can access an accdb, you may reach a broader audience by attaching in mdb format.

    Bob Fitzpatrick

    I have never failed. I have found a thousand ways that do not work!

    Microsoft Community Contributor Award (2011)



  3. #3
    Ganymede is offline Advanced Beginner
    Windows 7 32bit Access 2007
    Join Date
    Dec 2011
    Posts
    57
    Quote Originally Posted by Bob Fitz View Post
    Try:
    Me.NameOfListBoxControl.Requery
    That did it! Thank you, sir!

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

Similar Threads

  1. AfterUpdate requery does not requery list box
    By ittechguy in forum Programming
    Replies: 5
    Last Post: 09-05-2017, 08:51 AM
  2. requery
    By texas1014 in forum Queries
    Replies: 7
    Last Post: 06-18-2015, 02:55 PM
  3. Replies: 4
    Last Post: 07-17-2013, 01:11 PM
  4. Replies: 3
    Last Post: 04-16-2013, 11:15 AM
  5. Replies: 4
    Last Post: 12-31-2012, 01:10 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
  •  
Tech Forums: Microsoft Office Forums