Link to home
Start Free TrialLog in
Avatar of silsuba
silsuba

asked on

refresh all open forms

Hi All!

In a project, I have several forms and at any one time two or more forms can be open. Is there a simple method for refreshing the data on all open forms?

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of shanesuebsahakarn
shanesuebsahakarn
Flag of United Kingdom of Great Britain and Northern Ireland 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
Avatar of silsuba
silsuba

ASKER

shane;

Looks good, however when I run I get a method or data member found error on the .Forms

Avatar of silsuba

ASKER

Ok.. I got it..  

For Each frm in Forms ..

Works so far.. thanks!
Hmm, is this an ADP?

Try this:

Dim frm As Object
For Each frm In CurrentProject.AllForms
   If SysCmd(acSysCmdGetObjectState,acForm,frm.Name)<>0 Then frm.Refresh
Next

Does that work?
OK, if that fixes it, that's even better :)