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

test to see if form is open or get the calling form 1

Status
Not open for further replies.

idono

Technical User
Jan 16, 2002
71
US
How can I test to see if a form is open, other than the current form. Or maybe even find out the name of the calling form.

Any suggestions
 
Try the following: (Access 97+)
Code:
If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> 0 Then
   MsgBox &quot;Form is open&quot;
Else
   MsgBox &quot;Form is closed&quot;
End If
where strFormName = your requested form's name Jim Kraxberger
Developing Access solutions since 1995
 
For you my friend, have a star. That was easy and just what I needed.

Thanks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top