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

When No Records are returned, #Error

Status
Not open for further replies.

KaayJaay

IS-IT--Management
Jul 6, 2004
64
US
Is there a way that i can send the user a message stating that "there are no records returned for the criteria you input" when a query doesnt return anything, as opposed to my report being filled with #Error signs, or a blank page?

KaayJaay
 
You may consider using the NoData event procedure of the report.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
In addtion to PH's comments, if you want the report to open but show zeros, you can change your calculated text boxes to something like:
=IIf([HasData],Sum(Qty),0)

Duane
MS Access MVP
Find out how to get great answers faq219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top