Dave wrote:
--------------------
| From: "Dave R." <
[email protected]>
| Subject: Counting TRUEs of checkboxes across multiple columns
| Date: Wed, 14 Jan 2004 15:58:00 -0800
| Lines: 21
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
| X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
| Message-ID: <
[email protected]>
| Newsgroups: microsoft.public.access.queries
| NNTP-Posting-Host: eecclient.dhs.ca.gov 205.163.191.5
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.
phx.gbl
| Xref: cpmsftngxa07.phx.gbl microsoft.public.access.queries:186181
| X-Tomcat-NG: microsoft.public.access.queries
|
| Hi, I have a table which looks like:
| Question 1 Question 2 Question 3
| X X
| X X
| X X X
| X X
|
|
| etc. where the Xs are checked checkboxes.
|
| I am trying to make a query which simply shows for each question, how many
| checks there were. The result should appear like:
|
| Question 1 Question 2 Question 3
| 3 4 2
|
| I have tried the summation button, then using count or group by, but can't
| seem to get it to do this. Any help appreciated.
|
|
|
|
Why not use a Report and use the DCount function, example:
=DCount("[Question1]","[table name]","[Question1]=Yes")
=DCount("[Question2]","[table name]","[Question2]=Yes")
=DCount("[Question3]","[table name]","[Question3]=Yes")
I hope this helps! If you have additional questions on this topic, please
respond back to this posting.
Regards,
Eric Butts
Microsoft Access Support
"Microsoft Security Announcement: Have you installed the patch for
Microsoft Security Bulletin MS03-026? If not Microsoft strongly advises
you to review the information at the following link regarding Microsoft
Security Bulletin MS03-026
<
http://www.microsoft.com/security/security_bulletins/ms03-026.asp> and/or
to visit Windows Update at <
http://windowsupdate.microsoft.com/> to install
the patch. Running the SCAN program from the Windows Update site will help
to insure you are current with all security patches, not just MS03-026."