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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Is there a Is Open propert for forms?

Status
Not open for further replies.

CompAnalyst

Programmer
Nov 11, 2003
33
US
Ok stupid question-

I am trying to do something which is essentially

If form is open, then
do this.

And i can't seem to figure out how to determine with VBA coding if the form is open or not. ARGH... help!!!????


Rachel, Compensation Analyst
 
I think you need IsLoaded:
[tt]CurrentProject.AllForms("frmForm").IsLoaded[/tt]
 
If CurrentProject.AllForms("form name").IsLoaded Then

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
...and there's this,

If SysCmd(acSysCmdGetObjectState, acForm, "frmSales") = acObjStateOpen Then
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top