Results 1 to 2 of 2
  1. #1
    MTSPEER is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jun 2013
    Posts
    283

    Subform Requery

    Hello,

    I want to refresh my subform so once my table gets updated in my database it will automatically diplay the results as soon as I run my query where the table gets updated. I hate having to exit the database and opening it up again for it to be displayed. My Mainforms name is "Validation Tool" and my subform name is "Error_Sheet_subform.

    Thank you

  2. #2
    amrut is offline Expert
    Windows 7 64bit Access 2010 32bit
    Join Date
    Jun 2012
    Location
    India
    Posts
    616
    You do not have to exit the database, close and re-open the form. Better option, use following line of code in an a"appropriate" event. Or add button to the main form and put this line in it's click event. You may even run the update query and use the code to display the results in same event.
    Code:
    Me.Error_Sheet_subform.Requery

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

Similar Threads

  1. requery subform in tab Control
    By raffi in forum Forms
    Replies: 2
    Last Post: 10-16-2014, 12:36 PM
  2. Subform Requery Trouble
    By ztpkng in forum Forms
    Replies: 2
    Last Post: 06-19-2014, 04:02 PM
  3. requery subform
    By nswhit in forum Forms
    Replies: 2
    Last Post: 05-16-2013, 09:34 AM
  4. requery in subform
    By putte11 in forum Forms
    Replies: 7
    Last Post: 04-22-2013, 02:43 PM
  5. Replies: 3
    Last Post: 04-17-2012, 10:28 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