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...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top