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!

DSUM

Status
Not open for further replies.

bxgirl

Programmer
Nov 21, 2005
75
0
0
US
I have a report based on a query with a text field whose control source property looks like the following:

=DSum("[Weekly Hours]","[PCW_BRONX]"," [Program] = 'SD'")

How can I have this print 0 if there is no data to calculate.
 
=NZ(DSum("[Weekly Hours]","[PCW_BRONX]"," [Program] = 'SD'"),0)
 
How are ya bxgirl . . .
Code:
[blue]   =NZ(DSum("[Weekly Hours]","[PCW_BRONX]"," [Program] = 'SD'"))[/blue]

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top