If Not FormIsLoaded("frmCustomers") Then
DoCmd.OpenForm "frmCustomers"
End If
I'm still using the good FormIsLoaded function (paste it into a normal
module):
Public Function FormIsLoaded(AFormName As String _
) As Boolean
On Local Error Resume Next
FormIsLoaded = False
If SysCmd(acSysCmdGetObjectState, acForm, AFormName) <> 0 Then
If Forms(AFormName).CurrentView <> 0 Then
FormIsLoaded = True
End If
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.