Oct 13, 2006 #1 bxgirl Programmer Joined Nov 21, 2005 Messages 75 Location 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.
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.
Oct 13, 2006 #2 lameid Programmer Joined Jan 31, 2001 Messages 4,212 Location US =NZ(DSum("[Weekly Hours]","[PCW_BRONX]"," [Program] = 'SD'"),0) Upvote 0 Downvote
Oct 13, 2006 #3 TheAceMan1 Programmer Joined Sep 23, 2003 Messages 11,174 Location US How are ya bxgirl . . . Code: [blue] =NZ(DSum("[Weekly Hours]","[PCW_BRONX]"," [Program] = 'SD'"))[/blue] See Ya! . . . . . . Upvote 0 Downvote
How are ya bxgirl . . . Code: [blue] =NZ(DSum("[Weekly Hours]","[PCW_BRONX]"," [Program] = 'SD'"))[/blue] See Ya! . . . . . .
Oct 16, 2006 Thread starter #4 bxgirl Programmer Joined Nov 21, 2005 Messages 75 Location US Thank you so much. That worked. Upvote 0 Downvote