My data base is setup with several check boxes. How do I sum the values of these check boxes and display only the totals in a report? Can this be done without using a pivot table?
Thanks,
Nethrow
For each row you can get a total by taking advantage of the fact that a checkbox is -1 if true and 0 if false. If you add a calculated column to the underlying query it could look like this in design mode: Total:Abs(checkbox1 + checkbox2 + checkbox3 + checkbox4, etc) or like this if in SQL Mode: Select ...,Abs(checkbox1 + checkbox2, etc) AS Tot
If you need a group or grand total of the individual checkboxes, create a calculated field in the query for each one giving the field a value of 1 if it is true like so:
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.