How to test for "openness"

  • Thread starter Thread starter Gary Schuldt
  • Start date Start date
G

Gary Schuldt

I can't find anything on how to test to see if MyForm is open. Your help
would be appreciated!

Gary
 
In the latest versions of Access, you can use:
? CurrentProject.AllForms("MyForm").IsLoaded

In earlier versions, copy the IsLoaded() function from the Northwind sample
database, (or use SysCmd() directly).
 
Thanks, Allen.

I am running Access 2K; is the IsLoaded property supported?

I think there needs to be a
CurrentVersion.Capabilities(".IsLoaded").IsSupported :-)

I assume here that "loaded" means the same as "open", although I can imagine
an object being loaded but not "open". Just checking . . .

Gary
 
That's probably something you could try, Gary, and you have the alternative
if you need it.

The IsLoaded property and the IsLoaded() custom function both return True if
the form is open in any view: even design view, or hidden.
 
Allen,

I'm trying to determine, from another form, if I can store a value in a
control on the form in question.

I guess, then, to be safe, I should also test, if it's loaded, to make sure
it's also in form view, as well. Somewhere I'm thinking I saw the code to
do that . . .

Gary
 
Back
Top