Hi,
I'm using the NoData event
in my reports, which is working fine. But I'm opening the reports from a form that is using
After I get my message that there is No data and the report is canceling I then get the "OpenReport Action was cancelled". error. "You used the method of the Docmd object to carry out an action in VB and then clicked the cancel in the dialog box"
Is there any code, with the corresponding error # that I can put in the error handling of the button that opens the report that would bypass this message?
Thanks for your help
Sydney
I'm using the NoData event
Code:
On Error GoTo Err_Report_NoData
MsgBox "There is no data for this report. Canceling report..."
Cancel = -1
Exit_Report_NoData:
Exit Sub
Err_Report_NoData:
MsgBox Err.Description
Resume Exit_Report_NoData
Code:
DoCmd.OpenReport cboReportName.Column(2), acViewPreview
Is there any code, with the corresponding error # that I can put in the error handling of the button that opens the report that would bypass this message?
Thanks for your help
Sydney