Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Detect State of a Form

Status
Not open for further replies.

mishbaker

Technical User
Jan 17, 2004
94
US
What command/code could I use to detect the state of a form? For instance, if it is open or not.

I'm pretty sure there has to be a command for this already and I'm just missing it in the help file. Currently I have the form setting a global boolean onload and onunload. If the form is open it is requeried/refreshed when a new employee is selected on a different forms combo box. Otherwise is ignores the requery/refresh request.

I just know there has to be an better way.

Thanks in advance guys

All lessons learned from the School of Hard Knocks........at least tuition is cheap.
 
Take a look at IsLoaded:
If CurrentProject.AllForms("your form name").IsLoaded

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top