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!

Showing "no data" on a report

Status
Not open for further replies.

Spicealdous

Technical User
Feb 25, 2003
9
0
0
GB
Can anybody help me???

I would like a report to show the message "Nill Returns" when I run a report, instead of showing a blank page or a page full of "Errors"

Any ideas as this is really bugging me!
 
Hi

Probably more than one way to do this, but one idea is:

have a textbox control on the form, set it to visible if recordsource recordcount is zero, and set the content to "Nill Return", set other controls on the report to visible = false

if record count > 0 do the reverse

Regards

Ken Reay
Freelance Solutions Developer
Boldon Information Systems Ltd
Website needs upgrading, but for now - UK
 
use the 'on no data' event of the report to show a message box eg.
MsgBox "There are currently no returns", vbOKOnly


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top