Conditional Count in Access report

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

Guest

Does anyone know if I set up a conditional count (a bit like CountIf in
Excel) in an access report. eg I can count all values over 5 on each page of
a report. Thanks in advance for any help
 
Does anyone know if I set up a conditional count (a bit like CountIf in
Excel) in an access report. eg I can count all values over 5 on each page of
a report. Thanks in advance for any help

One handy way is to put a calculated field in the Query upon which the
report is based:

CondCount: IIF([Field] > 5, 1, 0)

and Sum this value in the report's section footer.

John W. Vinson[MVP]
 
Many thanks John

John Vinson said:
Does anyone know if I set up a conditional count (a bit like CountIf in
Excel) in an access report. eg I can count all values over 5 on each page of
a report. Thanks in advance for any help

One handy way is to put a calculated field in the Query upon which the
report is based:

CondCount: IIF([Field] > 5, 1, 0)

and Sum this value in the report's section footer.

John W. Vinson[MVP]
 
Solved it for me too. What a site!
Thanks
wal50

John Vinson said:
Does anyone know if I set up a conditional count (a bit like CountIf in
Excel) in an access report. eg I can count all values over 5 on each page of
a report. Thanks in advance for any help

One handy way is to put a calculated field in the Query upon which the
report is based:

CondCount: IIF([Field] > 5, 1, 0)

and Sum this value in the report's section footer.

John W. Vinson[MVP]
 

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