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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query with a combo box

Status
Not open for further replies.

cooldisk2005

Technical User
Aug 3, 2005
119
US
All,
I want to do a query on a field that is a combo box. The field name is: status, and the values in that field are: working, submitted, & approved. I have created a search form that I want to use with this query.

This is the syntax I have:

Code:
If Not IsNull(Me.status) And Me.Status <> "" Then
strWhere = strWhere & " (tbl_PAF.status) Like '*" & Me.status & "*' AND"
End If

With the above it is only allowing to search for one value in the combo box.

With the code above I want to be able to get results for 2 values from the combo box.

How would I change the code above to pull everything that is working and submitted?

Please help if anyone can.

Thanks so much in advance.
 
Search the FAQs for several solutions that use a multi-select list box.

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