Pass Field Name to Query from Input Box

R

Rick Baker

The db is a table of survey results where people completed a survey with
name and placed a check beside numbered statements indicated "I am
interested in ..." The check boxes are in a field named 1, 2, 3...66. So
the field name matches the area of interest on the survey. The data type is
Yes/No.

I want a query that will prompt me to input the area of interest number
(field name) and return all the names that checked yes for that area of
interest.
tblSurvey_Results
FName LName 1 2 3 4
John Doe X X
Jane Smith X X

If I enter "2" in the input box, both names should be returned.

How do I get the field name from the input box to the query? Is there a much
simpler way to accomplish this result with a different table design?

Thanks,
Rick
 

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