Y/N field in a query. How do I get report Summary to count Ys?

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

Guest

I am building a report based on a query. One of the fields in the query is a
"Yes/No" field. I am working in the report footer to try to get a count of
all records where that field is "YES". A "COUNTIF" would be perfect, but
I am not having any luck.

Let's say the field name is "Correct Choice". How can I get the total # of
correct choices to display in the Report Footer?
 
MaxPower said:
I am building a report based on a query. One of the fields in the
query is a "Yes/No" field. I am working in the report footer to try
to get a count of all records where that field is "YES". A
"COUNTIF" would be perfect, but I am not having any luck.

Let's say the field name is "Correct Choice". How can I get the
total # of correct choices to display in the Report Footer?

Sum(Abs([Correct Choice]))

This works because True (or Yes) is stored as negative one while False is
stored as zero.
 
Rick.... you are a LIFE SAVER!!!!!!!

Rick Brandt said:
MaxPower said:
I am building a report based on a query. One of the fields in the
query is a "Yes/No" field. I am working in the report footer to try
to get a count of all records where that field is "YES". A
"COUNTIF" would be perfect, but I am not having any luck.

Let's say the field name is "Correct Choice". How can I get the
total # of correct choices to display in the Report Footer?

Sum(Abs([Correct Choice]))

This works because True (or Yes) is stored as negative one while False is
stored as zero.
 

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