Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Report No Data Puzzle: Message box displays twice

Status
Not open for further replies.

kcn

Programmer
Jul 5, 2002
27
Hi,

I'm getting the same message display *twice* when I use the no data event:

Private Sub Report_NoData(Cancel As Integer)
msgbox "no records!"
End Sub

If I include a cancel statement (Cancel = -1), the second message that displays is the Access: "the open report action was canceled"

Any ideas what could be going on?

This is Access 2000.

thanks!
 
Have a look at error handler

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Thanks. You pointed me in the right direction!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top