You can add the yes/no fields in your query
CountYes: Abs([Field1]=True) + Abs([Field2]=True) + Abs([Field3]=True) etc
Then
CountNo: Abs([Field1]=False) + Abs([Field2]=False + Abs([Field3]=False)
> Hello group,
> I need help on the following. I have a table with 8 different columns
[quoted text clipped - 27 lines]
>
> Thanks
>I need help on the following. I have a table with 8 different columns
>all of them are checkbox options (e.g. yes or no). I need to run a
[quoted text clipped - 13 lines]
>Yes XXXX number
>No XXXX number
[]
>How can I create a qry that takes all of the fields into
>consideration, so I can make a report off of it.
If the check boxes are so closely related that counting the
yeses makes sense, then you have an unnormalized table
structure that will cause more than this on problem. You
should put that info in a separate table with only one
yes/no field, a foreign key to the main table and a value to
indicate which option was checked.
You current question can be done by using these odd kind of
expressions:
Yes =-chk1-chk2-chk3- ...
No =8+chk1+chk2+chk3+ ...

Signature
Marsh
MVP [MS Access]
CD27 - 23 Apr 2008 21:24 GMT
Thanks Evi and Marsh,
You are absolutely right Marsh, this table is not normalized at all
but unfortunately i can not do anything about it since I did not
create it. Will see how much trouble this will cause later, I'm
assuming a lot though!
> >I need help on the following. I have a table with 8 different columns
> >all of them are checkbox options (e.g. yes or no). I need to run a
[quoted text clipped - 36 lines]
>
> - Show quoted text -
Marshall Barton - 23 Apr 2008 22:39 GMT
>Thanks Evi and Marsh,
>
>You are absolutely right Marsh, this table is not normalized at all
>but unfortunately i can not do anything about it since I did not
>create it. Will see how much trouble this will cause later, I'm
>assuming a lot though!
Been there and the pain just keeps coming back ;-)
My sympathies.

Signature
Marsh
MVP [MS Access]