Link to home
Start Free TrialLog in
Avatar of Sandesh555
Sandesh555Flag for India

asked on

How to do Refresh All in MS Access VBA

Hi Team,

I know how to refresh in MS Excel VBA, but not sure what is the code for refresh all in MS Access.
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

You refresh individual objects in Access. You can refresh a Form like this:

Me.Refresh

Assuming you run that code directly in the form's Code module. You can also refresh a form like this:

Forms("YourFormName").Refresh

Note that "Refresh" is different than "Requery". Requery will entirely rebuild the form's underlying dataset; refresh does NOT, and is therefore used when you are certain that you do NOT need to re-fetch the dataset, but merely to rebuild what you currently have.
Avatar of Sandesh555

ASKER

Basically after i run my code to capture data from Outlook into my access table "MData".  I have to manually refresh the table see number of records.
I wnat to stop that....
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks this helps....