Test If Form Is Loaded

  • Thread starter Thread starter Doctor
  • Start date Start date
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,
 
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...
 
Back
Top