When I open a report with no data my own message box (put in the Report-NoData event) is shown followed by the following error: Runtime-error 2501 - The Openreport action was canceled. The report is opened by pushing on a button on a form with the following code: DoCmd.OpenReport "MyReport", acViewPreview (put in the On-Click event of the button). What am I doing wrong here. Can someone help me with this.
Thank you in advance.
Thank you in advance.