F
Fie
What am trying to do it get my form to Pass parameters to report...
when i click on the report my form opens up and allows me to enter in
start adn end date. When I click on OK or Cancel there seems to be an
error in the module code is done seem to like
If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <>
conObjStateClosed then
i think there must be an error cause this code is in red... can any1
help???
the code that i have is
Option Compare Database
Option Explicit
Public Function IsFormLoaded(strFormName As String) As Boolean
'John Spencer UMBC-CHPDM
'Last Update: April 7, 2000
'Purpose: Returns True if the specified form is open in Form view or
Const conObjStateClosed = 0
Const conDesignView = 0
If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <>
conObjStateClosed then
If Forms(strFormName).CurrentView <> conDesignView Then
IsFormLoaded = True
End If
End If
End Function
when i click on the report my form opens up and allows me to enter in
start adn end date. When I click on OK or Cancel there seems to be an
error in the module code is done seem to like
If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <>
conObjStateClosed then
i think there must be an error cause this code is in red... can any1
help???
the code that i have is
Option Compare Database
Option Explicit
Public Function IsFormLoaded(strFormName As String) As Boolean
'John Spencer UMBC-CHPDM
'Last Update: April 7, 2000
'Purpose: Returns True if the specified form is open in Form view or
Const conObjStateClosed = 0
Const conDesignView = 0
If SysCmd(acSysCmdGetObjectState, acForm, strFormName) <>
conObjStateClosed then
If Forms(strFormName).CurrentView <> conDesignView Then
IsFormLoaded = True
End If
End If
End Function