Query limitations in Access '97

TMurray

New Member
Joined
Mar 17, 2003
Messages
1
Hi, I have a database with 30 "checkbox" fields. If a customer is unhappy about something a check goes into that field. At the end of the day most of these "checkboxes" are empty. Question; how can I query this data so that I get only the fields with a checkmark? I tried adding "Yes" to the criteria in the query and that works fine, but I can only do that for 9 fields. I've tried seperating it into 4 different queries but keep getting stuck (I couldn't write a report incorporating all 4 queries).

Any suggestions would be greatly appreciated.

Thanks in advance,
Tom
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
Hi,

It seems as though you may have an odd table structure. Do you have an individual field for each question i.e. a field per checkbox?

An alternative way would be to have a table which has two fields - one containing the question and one containing the answer. A possibly more efficient way is to store your questions in one table and results in another. Here is an example for your questions table:


<pre>tblQuestions
QuestionID QuestionText
1 Did you like your meal?
2 Did you like you wine?
3 Did you like the service?
</pre>

Then you could have an Answers table.

<pre>
tblAnswers
ResponderName QuestionID Answer
Dave 1 Yes
Dave 2 No
Dave 3 Yes
John 1 Yes
John 2 Yes
John 3 No
Paul 1 No
Paul 2 No
Paul 3 Yes
</pre>

You'd then have no problems creating a query including only certain answers.

EDIT - Sorry about the column headers being screwed :)
 
Upvote 0

Forum statistics

Threads
1,221,513
Messages
6,160,242
Members
451,632
Latest member
purpleflower26

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top