Get rid of printing msg on NoData

G

Guest

Hello -

I have a messagebox in the NoData event of reports as follows:

Private Sub Report_NoData(Cancel As Integer)
DoCmd.SetWarnings False
MsgBox "No data returned. Try changing dates."
Cancel = True
DoCmd.SetWarnings True
End Sub

At the same time my message pops up, an Access msgbox pops up saying "Now
printing 'ReportName' to the 'NameOfSystemPrinter' "

There is nothing sent to the printer; nothing printed, which there shouldn't
be.

How do I get rid of this useless msgbox?

Any help will be greatly appreciated!
 

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

Similar Threads


Top