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

Report errors

Status
Not open for further replies.

car54

Programmer
Jun 23, 2004
4
US
Please advise why my Reports work with no errors and then when the database was initialized with zero records then the report numbers show "ERROR" messages.

If I put data in the database it shows the numbers and everything looks okay and the "ERROR" messages disappear. How can I make the "ERROR" messages not show up (in the numbers area) when there are no records in the database??
 
You're getting the #Error because Access doesn't have any data for the reports. You can set up an On No Data event procedure so your user won't see the errors. Just see this FAQ:

Linda Adams
Visit my web site for writing and Microsoft Word tips: Official web site for actor David Hedison:
 
Thanks
The only thing I cant find is the "On Data" event procedure for my report.

I clicked on properties and do not see this. I see "On click" "On Double click" etc...

This is on Access 2000.
 
I have a cost/benefit report for which the user selects the month from a form before opening the report- no problem.
What I would like to do is to check whether there is any data present for the chosen month, before the report is opened, and if there is none display a message box saying this instead. What's the easiest way to go around this please?

Thanks

Nigel
 
Sorry, posted in wrong place, reposted as new thread!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top