on nodata, show message then close report (1 Viewer)

deekras

Registered User.
Local time
Today, 13:41
Joined
Jun 14, 2000
Messages
169
on nodata, i want to show a message and then close report, sending it back to record selection dialog form.

i have the message, i just can't get it close the report and send me back to the form.

any suggestions?
 
R

Rich

Guest
Check out "solutions" sample database supplied by Microsoft, Employee sales.
 

BarkerD

Registered User.
Local time
Today, 13:41
Joined
Dec 1, 1999
Messages
106
Put this function call in the Report's No Data Event

=ThereIsNoData()

Function ThereIsNoData()

MsgBox$("There is no information for the criteria that you specified." & Chr(10) & "Please choose the Menu item and try again.")
DoCmd.CancelEvent

End Function
 

Users who are viewing this thread

Top Bottom