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!

Problem with counting zero records

Status
Not open for further replies.

dgirl1010

Technical User
Jul 14, 2006
20
US
I'm working on a report that will show me the number of projects I have by phase. There are some phases that no projects are in, and I need to be able to display a zero count on the report for them.

I've tried using Sum(IIf([ProjectStage],1,0)), but I still don't get any zero counts. Help!
 
How are ya dgirl1010 . . .

Try:
Code:
[blue]   Sum(Nz([ProjectStage],0))[/blue]

Calvin.gif
See Ya! . . . . . .

Be sure to see thread181-473997
Also faq181-2886
 
Hmm, that gave me a type mis-macth error. But I did figure something else out that works, I just did a left join to include all the records from the table where I keep a list of the phase names. :p Love it when it's something simple like that! Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top