Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Criteria with a drop down box or all 1

Status
Not open for further replies.

Element74

Technical User
Mar 23, 2005
14
US
I am a new user to Access running Access 2000.

Currently I have the following criteria for a query.

Like [Enter Vendor or Hit Enter for All] & "*"

I would like to have a drop down box for all the vendors instead of having the user to type the name.

How can I do this and still let them display all vendors?

I have a table with the vendor names already listed which a data entry form uses as a drop down box to eliminate typos and to keep all the vendor names the same.

Thanks in advance
 
I generally create a Report Criteria Form from which the user can select the criteria they want included on the report. In your case, the form might contain, at least, the list box of vendors. This FAQ faq181-5497 contains a function that will build the Where clause for you. It works on single and multi-select listboxes, combo boxes, text boxes, ranges, option groups, and check boxes.
 
I checked the FAQ and that is quite complex for my level of Access knowledge, is there anything that is relatively simple?

 
FancyPrairie's solution is great and it might be good to try to understand it at some point. To get a less flexible yet very functional example, check this
Duane MS Access MVP
[green]Ask a great question, get a great answer.[/green] [red]Ask a vague question, get a vague answer.[/red]
[green]Find out how to get great answers faq219-2884.[/green]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top