Detective a Forms Status Opened/Closed

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How can I detect, programatically, if a form is opened or closed?

Thanks

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top