As you have mentioned you have already created an error message. So the only thing left is to make 'Cancel = True' this will close the report after the user closes the message box.
Here is an example:
Private Sub Report_NoData(Cancel As Integer)
MsgBox "Error Message Here!"...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.