If my report returns no records I want to use the No Data event to produce a message and close the report. I ma entering the following
Private Sub Report_NoData(Cancel As Integer)
MsgBox "There are no records for this report", vbInformation, "DBA"
Docmd.close acReport, "report 1"
End Sub
I keep getting a Debug message
Private Sub Report_NoData(Cancel As Integer)
MsgBox "There are no records for this report", vbInformation, "DBA"
Docmd.close acReport, "report 1"
End Sub
I keep getting a Debug message