Mar 18, 2003 #1 idono Technical User Joined Jan 16, 2002 Messages 71 Location 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
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
Mar 18, 2003 1 #2 kraxmo Programmer Joined Aug 14, 2002 Messages 58 Location US Try the following: (Access 97+) Code: If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> 0 Then MsgBox "Form is open" Else MsgBox "Form is closed" End If where strFormName = your requested form's name Jim Kraxberger Developing Access solutions since 1995 Upvote 0 Downvote
Try the following: (Access 97+) Code: If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <> 0 Then MsgBox "Form is open" Else MsgBox "Form is closed" End If where strFormName = your requested form's name Jim Kraxberger Developing Access solutions since 1995
Mar 19, 2003 Thread starter #3 idono Technical User Joined Jan 16, 2002 Messages 71 Location US For you my friend, have a star. That was easy and just what I needed. Thanks Upvote 0 Downvote