Using MS Access/Query
Expert: Richard Rost - 7/9/2009
QuestionI need a Parameter Query to accept more than one entry so i can have it return the resuls for several records. The data, (test number) in the field i am searching on is unique to each record. It would need to ask to enter the test numbers, i.e. 1021, 1011, 1065.
Thanks.
AnswerI would do this as a form.
Make a form with the most number of text boxes that you think you would ever need as parameters, and then refer to them in your query as in the following tutorial:
If you want to refer to a value on a Form, you can use the notation:
Forms!FormName!FieldName
You can use this notation inside of queries, other forms, or even reports. I have a free tutorial that explains how to use this:
http://599cd.com/tips/access/forms-formname-field-notation?key=AllExperts
Note that if you're refering to a value on a SUBFORM, the correct notation is:
Forms!FormName!SubForm.Form!FieldName
Crazy, I know. Enjoy! Hope this helps.
Let me know if you have any other questions or comments.
Also, be sure to visit my web site and watch my FREE 90-minute MICROSOFT ACCESS VIDEO TUTORIAL. Go to
http://www.599cd.com/Access/AllExperts
Cordially,
Richard Rost
599CD Computer Training
http://www.599cd.com
P.S. Also, don't forget to visit my FREE Microsoft Access Tips & Tricks Page at
http://www.599cd.com/Tips/AllExperts
P.P.S. I volunteer my time at AllExperts to help people, and I get a LOT of questions, so I can't take an hour to answer each question. If you need more DETAILED HELP, come to my TechHelp web site at
http://www.599cd.com/TechHelp/AllExperts and I'll take as much time as you need to answer your question.
http://www.599cd.com/Microsoft_Access_Tutorial?key=AllExperts
Out of work? Know someone who is? Get a FREE copy of my Computer Job Skills CD at
http://www.599cd.com/JobSkills?key=AllExperts