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!

DSUM answer=0, report text box displays nothing. 1

Status
Not open for further replies.

CptCrusty1

Programmer
Feb 17, 2005
216
US
I have a report with dozens of calculated text boxes. All of them are DCOUNT's or DSUM statements. I have a DSUM calculating total hours (DSUM on Hours column). If the hours are zero (nothing to sum based on previously defined criteria), the textbox displays Nothing, and anything else that is linked to that textbox will also show nothing. I tried using an IIF(DSUM = 0,then, "0", DSUM) statement, which worked for the same problem on a form, but won't work on a report. Any ideas?
RK
 
use NZ(Dsum()) and NZ(Dcount()) to force zeros into the answers
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top