Open Form - urgent

jrmellis

Registered User.
Local time
Today, 00:18
Joined
Mar 21, 2002
Messages
30
How do I use VB to check if a form is open?

Thanks
 
There's a function in a module in the Northwind database called IsLoaded().

Copy that into your database.

In code you can then use it like this:

To determine if a form is open:

Code:
If IsLoaded("frmYourForm") = True Then

or, more simply:

Code:
If IsLoaded("frmYourForm") Then


To determine if a form is closed:

Code:
If IsLoaded("frmYourForm") = False Then

or, more simply:

Code:
If Not IsLoaded("frmYourForm") Then
 
Thanks. Would IsLoaded return true if the form is hidden?
 

Users who are viewing this thread

Back
Top Bottom