Checkboxes that return zero are counted as 1 in my report

J

Jules_clarke

I have a form that uses checkboxes. From there I built a query to count
every checked check box, then a report with CountOf...to display the count of
the checked boxes. My problem is....when a users inadvertently checks a box
then UNCHECKS the box, it show '0' in the table which returns a count of 1 in
my report. I need to somehow hide the zeros or get the check boxes to work
correctly. Any help woul be appreciated.
 
J

Jerry Whittle

Since -1 is Yes in a check box, do a sum instead of a count. Of course that
will give you a negative number. The ABS function (absolute value) will turn
the negative to a positive.

TheYeses: ABS(Sum([YourYesNoField]))
 

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

Top