counting yes/no boxes

R

Ryan

trying to count the number of yes/no boxes checked in a
query but cannot figure out how to set up my control..

used the count(*) to count the records

can count the number of times something appears in a text
field but cannot figure out how to count the number of
time a check box has been checked....

help please..

Ryan
 
K

Ken Snell

True is -1, False is 0.

So, Sum(-[CheckBoxField]) will give you the count of the checkboxes that are
checked true.
Or Abs(Sum[CheckBoxField]))
 

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