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

Combo Box that returns all values

Status
Not open for further replies.

RonMcNatt

Technical User
May 22, 2002
32
US
I think my previous thread was misleading. I'm using a combo box to feed a criteria field in a query.

How do I get the combo box to send a value that gives me all the records in the table?

The current choices of "North", "South", "East" all return the records that correspond to the appropriate value. I want to give the user the option to return all the records.

Any thoughts would be appreciated.

Ron McNatt
 
Well After a couple more hours of digging, I found the answer. The solution was to combine the Like Function with the IIf function.

For my solution, I have ALL as one of the values in the combo box. Then in the criteria portion of the query I have this statement:

Like IIf([Forms]![Form1]![Combo0]="All","*",[Forms]![Form1]![Combo0])

This works like a charm. Thanks everyone for your time. This site ROCKS!!

Ron McNatt
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top