check to see of a form is open

K

Karen

I cant get the Visual Basic help to tell me this...
I want to check to see if a form is open before I do a certain action. How
do I do that?

Thanks,
Karen
 
A

Allen Browne

Test:
CurrentProject.AllForms("MyForm").IsLoaded

Older versions do not have the AllForms collection, but you can copy the
IsLoaded() function from the Northwind sample database.
 

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