Test If Form Is Loaded

D

Doctor

I need to test if a form is open. I have this code but must be from different
version?

If (rst.RecordCount < 6) Or IsFormLoaded("Contacts") Then...

IsFormLoaded is not in my definitions; it get errors on this command. What
should I be using to test whether the form is open??

Thanks,
 
D

Douglas J. Steele

IsFormLoaded is not a VBA function: it must be something that you (or
someone else) wrote in the "other" application.

If you still have that application, look for the function and copy it into
your new application.

If not, try using

If (rst.RecordCount < 6) Or CurrentProject.AllForms("Contacts").IsLoaded
Then...
 
Top