D
Dennis
Hi,
OS - XP Pro SP3
Access - XP Office Pro - SP3
My main forms opens up a form call frmDspEvents where I display the events
as they fire. (I'm learning about access).
I can see the form on my screen, but when I execute the statememt
Forms("frmDspEvents") I receive the error message "Can't find the Form
"frmDspEvents" referenced in a macro expression of Visual Basic code.
I've read the other entries with respect to this error and I understood
them, they said it will work if the form is open. My form is opened and it
fails. frmDspEvents is a pop-up form that I open from my initial form using
the code:
Set frmDspEvent = New Form_frmDspEvents ' Open dsp event
frmDspEvent.SetFocus
Call Display_Event("Form_Open") ' Display event
Private Sub Display_Event(strEventName as String)
if IsFormLoaded("frmDspEvent") then frmDspEvent.ShowEvent strEventName
End sub
It is end the IsFormLoaded where the error is occuring when I run the line:
if forms(strFormName).CurrentView <> 0 then
I also noticed that I never dimed the variable frmDspEvent and VB never
complained even though I have Option Explicit at the top of the module.
Thanks for you assitance.
OS - XP Pro SP3
Access - XP Office Pro - SP3
My main forms opens up a form call frmDspEvents where I display the events
as they fire. (I'm learning about access).
I can see the form on my screen, but when I execute the statememt
Forms("frmDspEvents") I receive the error message "Can't find the Form
"frmDspEvents" referenced in a macro expression of Visual Basic code.
I've read the other entries with respect to this error and I understood
them, they said it will work if the form is open. My form is opened and it
fails. frmDspEvents is a pop-up form that I open from my initial form using
the code:
Set frmDspEvent = New Form_frmDspEvents ' Open dsp event
frmDspEvent.SetFocus
Call Display_Event("Form_Open") ' Display event
Private Sub Display_Event(strEventName as String)
if IsFormLoaded("frmDspEvent") then frmDspEvent.ShowEvent strEventName
End sub
It is end the IsFormLoaded where the error is occuring when I run the line:
if forms(strFormName).CurrentView <> 0 then
I also noticed that I never dimed the variable frmDspEvent and VB never
complained even though I have Option Explicit at the top of the module.
Thanks for you assitance.