Detective a Forms Status Opened/Closed

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
Thank You Allen

Allen Browne said:
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.
 
Back
Top