J
JP Bless
I mistakenly renamed a module that had the code below. The module was named
"something" & "code"
By the way I did not create this module and I did not write the code ... so
I would would assume this is some kind of system module. Now I can't open
most forms... I get the error previous operation was cancelled. I tried to
work around this by creating a new database and importing all the forms and
tables in to the new db. Yet same problem. Anyone know what I should do?
Please help
Function IsLoaded(ByVal strFormName As String) As Integer
' 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
"something" & "code"
By the way I did not create this module and I did not write the code ... so
I would would assume this is some kind of system module. Now I can't open
most forms... I get the error previous operation was cancelled. I tried to
work around this by creating a new database and importing all the forms and
tables in to the new db. Yet same problem. Anyone know what I should do?
Please help
Function IsLoaded(ByVal strFormName As String) As Integer
' 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