In Access 2000 and later, you can use:
CurrentProject.AllForms("Form1").IsLoaded
In earlier versions, use:
SysCmd(acSysCmdGetObjectState, acform, "Form1")
If that seems a bit cryptic, copy the IsLoaded() function from the Northwind
sample database. It's a wrapper for the SysCmd() call.
In Access 2000 and later, you can use:
CurrentProject.AllForms("Form1").IsLoaded
In earlier versions, use:
SysCmd(acSysCmdGetObjectState, acform, "Form1")
If that seems a bit cryptic, copy the IsLoaded() function from the Northwind
sample database. It's a wrapper for the SysCmd() call.