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

Combo Box - Select */All if null?

Status
Not open for further replies.

richand1

Programmer
Feb 4, 2004
88
GB
Hi,

I've got a combo box that uses a column in a table to filter out records in a subform/query. The column is for the promotion mechanic. I now need to create another combo box that will filter the subform still more by selecting the vendor who is "hosting" the promotion. My only problem here is, if we want all "3 for 99p" promotions regardless of vendor, leaving the vendor combo box blank mweans that the query doesn't return any records.

I've tried messing around with an if statement in the criteria of the vendor column in the query, but to no avail.

Is there a way to have a record within the vendor combo box that says "All" as a default value and, when left or selected, requeries the query so that all values are returned?

Thanks all
Rich
 
How are ya richand1 . . .

Have a look here How to add '(all)' to a combo box or a list box control

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top