If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <>
conObjStateClosed Then
If Forms(strFormName).CurrentView <> conDesignView Then
IsLoaded = True
End If
End If
End Function
Then place the below on an Event Procedure of the form from which you want
to check if another form is open.
If IsLoaded("YourFormHere") Then
Do Something Here
Else
Do Something Else Here
End If
If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <>
conObjStateClosed Then
If Forms(strFormName).CurrentView <> conDesignView Then
IsLoaded = True
End If
End If
End Function
Then code some event:
If Not IsLoaded("FormA") Then
Do this
Else
Do that
End if
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.