D
dbl
Hi I have 2 reports that I bring up using the following code:
Dim stDocName As String
stDocName = "LateEstimates"
DoCmd.OpenReport stDocName, acPreview
stDocName = "LateInvoices"
DoCmd.OpenReport stDocName, acPreview
I use the following code in the On No Data events procedure for each report
MsgBox "No Estimates Outstanding"
Cancel = True
All works well if there is data, but when the first report hasn't any data
to view
I get the message box as you would expect, when I click OK I get the following
Error message "Event Cancelled" and no second report.
How do I get the code to continue so that the second report is requested?
Bob
Dim stDocName As String
stDocName = "LateEstimates"
DoCmd.OpenReport stDocName, acPreview
stDocName = "LateInvoices"
DoCmd.OpenReport stDocName, acPreview
I use the following code in the On No Data events procedure for each report
MsgBox "No Estimates Outstanding"
Cancel = True
All works well if there is data, but when the first report hasn't any data
to view
I get the message box as you would expect, when I click OK I get the following
Error message "Event Cancelled" and no second report.
How do I get the code to continue so that the second report is requested?
Bob