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!

error when there are no records

Status
Not open for further replies.

MICKI0220

IS-IT--Management
Jul 20, 2004
337
US
I have a report that does commission calculations in the footer of the report. It has a text box that is the result of a query. If the query has a blank results list the text box displays error and then the ensuing calculation creates another error. How do I force the text box to take 0 as the value if the results of a query is empty. basically I am just taking the total amount distributed for an individual....If an individual did not get an disbursements, then the result is null instead of a total calculation.
 
Can you give me an example of the expression part?
 
text box control source :
=DLookUp("draw_total","qrySlsRepDrawHistoryPaid")
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top