J
John McKee
In a function that's been working perfectly for years,
after some modifications to the database, suddenly it's
throwing the subject error. Here's the function, as
provided by Getz et al in Access 97 Developer's Handbook:
Function IsLoaded(ByVal strFormName As String) As Boolean
' Returns True if the specified form is open in Form view
or Datasheet view.
Const conObjStateClosed = 0
Const conDesignView = 0
If SysCmd(acSysCmdGetObjectState, acForm, strFormName)
<> conObjStateClosed Then
If Forms(strFormName).CurrentView <> conDesignView
Then
IsLoaded = True
End If
End If
End Function
The strFormName is highlighted at the error. It's
declared as the Function's input parameter.
Any ideas where to check to fix this?
TIA,
John
after some modifications to the database, suddenly it's
throwing the subject error. Here's the function, as
provided by Getz et al in Access 97 Developer's Handbook:
Function IsLoaded(ByVal strFormName As String) As Boolean
' Returns True if the specified form is open in Form view
or Datasheet view.
Const conObjStateClosed = 0
Const conDesignView = 0
If SysCmd(acSysCmdGetObjectState, acForm, strFormName)
<> conObjStateClosed Then
If Forms(strFormName).CurrentView <> conDesignView
Then
IsLoaded = True
End If
End If
End Function
The strFormName is highlighted at the error. It's
declared as the Function's input parameter.
Any ideas where to check to fix this?
TIA,
John