Is there a way to craft a message box alerting user if record [match]not found before [empty] report

J

joeyej

I have a query that searches records on last name using parm "Like
[Enter Technician Last Name: ] & "*"". My client [details] report
opens up empty if no match. Is there a way to craft a message box
alerting user if record [match] not found before report opens?
 
D

Dennis

Reports have an 'On No data' property so you can put this code in there

Private Sub Report_NoData(Cancel As Integer)
MsgBox "No data"
Cancel = True
End Sub
 
J

joeyej

Reports have an 'On No data' property so you can put this code in there

Private Sub Report_NoData(Cancel As Integer)
    MsgBox "No data"
    Cancel = True
End Sub



joeyej said:
I have a query that searches records on last name using parm "Like
[Enter Technician Last Name: ] & "*"". My client [details] report
opens up empty if no match. Is there a way to craft a message box
alerting user if record [match] not found before report opens?- Hide quoted text -

- Show quoted text -

Many thanks!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top