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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Style Question 1

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I was wondering what people choose to have the database do when a Report opens and there is no data to display.
 
Access 97 and Access 2000 Report objects have an event called On No Data (check the property sheet for a report).

A simple way to handle reports with no data is to create a macro which, for instance, does the following:
1. Displays a message saying:
"No data exists for this report."
2. Issues a CancelEvent to stop the report opening.

Set this macro as the On No Data property for any report you want to do this for.

You can do more sophoisticated things if you are executing the report using code but this is the simplest.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top