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!
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok.. I got it..
For Each frm in Forms ..
Works so far.. thanks!
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(acSysCmdGetObjectSt ate,acForm ,frm.Name) <>0 Then frm.Refresh
Next
Does that work?
Try this:
Dim frm As Object
For Each frm In CurrentProject.AllForms
If SysCmd(acSysCmdGetObjectSt
Next
Does that work?
OK, if that fixes it, that's even better :)
ASKER
Looks good, however when I run I get a method or data member found error on the .Forms