count

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

ppey,

I am a newbie to Access. I have a report where i am trying to get a count of
the number of times "0" appears in a column. The name of the column is
NumberOfResult.

Thnaks

Gerry
 
In the control source of the text box that you want to display the count

=Sum(IIf([NumberOfResult]=0,1,0))

So it will sum all the 1 when NumberOfResult = 1.
 
Gerry,
You could add a calculated field to the report query such as...
IsZero : IIF(NumberOfResult = 0,1,0)
Then just =Sum(IsZero) in any footer.

Or, in any footer...
=Sum(IIF(NumberOfResult = 0,1,0))
--
hth
Al Campagna . Candia Computer Consulting . Candia, NH USA
Microsoft Access MVP
http://home.comcast.net/~cccsolutions

"Find a job that you love, and you'll never work a day in your life."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top