I have this code written when do data is found in the report
Private Sub Report_NoData(Cancel As Integer)
MsgBox "No Data to show on the report"
DoCmd.Close
End Sub
it works fine, displays a error messge and doesnt load an empty report but i get the runtime error 2585 which stops the debug at this line
DoCmd.Close
any ideas anyone?