If IsLoaded("A") Then
Forms!A.Visible = True
End If
End Sub
Function IsLoaded(ByVal strformName As String) As Integer
Const OBJ_STATE_CLOSED = 0
Const DESIGN_VIEW = 0
If SysCmd(acSysCmdGetObjectState, acForm, strformName) <> OBJ_STATE_CLOSED Then
If Forms(strformName).CurrentView <> DESIGN_VIEW Then
IsLoaded = True
End If
End If
End Function