Lavenderchan
Technical User
Hi I have a question,
I have a unbound form that I'm using to set for my paramter search for a report but the code isn't working right It has something to do with the isload funtion. If I try to use a fix from another question answered it doesn't work.
here is the code
Private Sub Report_Open(Cancel As Integer)
' Set public variable to true to indicate that the report
' is in the Open event
bInReportOpenEvent = True
' Open Open Items Dialog
DoCmd.OpenForm "Open Items Dialog", , , , , acDialog
' Cancel Report if User Clicked the Cancel Button
If IsLoaded("Open Items Dialog") = False Then Cancel = True
' Set public variable to false to indicate that the
' Open event is completed
bInReportOpenEvent = False
End Sub
I have it set up so that you can not open the form from the form menu but have to open the report to get it to work. But VBA is reading an error on the Is Load again.
Any help would help me with my confusion.
Thanks,
Keri
I have a unbound form that I'm using to set for my paramter search for a report but the code isn't working right It has something to do with the isload funtion. If I try to use a fix from another question answered it doesn't work.
here is the code
Private Sub Report_Open(Cancel As Integer)
' Set public variable to true to indicate that the report
' is in the Open event
bInReportOpenEvent = True
' Open Open Items Dialog
DoCmd.OpenForm "Open Items Dialog", , , , , acDialog
' Cancel Report if User Clicked the Cancel Button
If IsLoaded("Open Items Dialog") = False Then Cancel = True
' Set public variable to false to indicate that the
' Open event is completed
bInReportOpenEvent = False
End Sub
I have it set up so that you can not open the form from the form menu but have to open the report to get it to work. But VBA is reading an error on the Is Load again.
Any help would help me with my confusion.
Thanks,
Keri