Full Version: Form refresh/requery/update with pages
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
angelp
I have a form with several pages on it and those pages contain subforms/forms. I would like the entire form and the pages to update when I click a button/tab.

I have tried a refresh button/tab
I have tried a requery button/tab

I am trying to avoid putting a refresh button on every page.

Can anyone help please.

Thanks,
Angel
balaji
If there are multiple subforms on the form, you have to requery the form and then the individual subforms separately. You don't need separate refresh buttons on each page, but you do need separate refresh commands for each of the subforms fired from the same refresh button.
Aquadevel
Angel,

Welcome to UA!!

In addition to Balaji's post, you could try:

DoCmd.RunCommand acCmdRefreshPage

Good luck with your project. sad.gif

Aqua
mishej
Check the help for more info on Refresh and Requery methods.

The Refresh is used to see changes to the existing set of records but will not see any additions or deletions.

The Requery will do a complete requery of the data and thus will see changes, adds and deletes.
angelp
Thanks everyone. I used Aqua's suggestion-seemed the easiest and it worked.

Thanks for all of your help!!!! -o!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.