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