P
PlsHelpme
I need to count a field only if it is NOT equal to 0. I would us
COUNTIF in Excel, however not sure how to do this in Access
COUNTIF in Excel, however not sure how to do this in Access
NBVC;455546 said:From Google researching, it looks like you will need something like:
COUNT(IIF(condition,1,0))
gotten from here:
I need to count a field only if it is NOT equal to 0. I would use
COUNTIF in Excel, however not sure how to do this in Access.
PlsHelpme said:I need to count a field only if it is NOT equal to 0. I would use
COUNTIF in Excel, however not sure how to do this in Access.
Douglas said:Wherever you found that, it's wrong.
You need Sum, not Count.
--
Doug Steele, Microsoft Access MVP
'Doug Steele's Beer and Programming Emporium' ()
(no e-mails, please!)
Office Discussion' (http://www.thecodecage.com))
------------------------------------------------------------------------