MorningSun
Technical User
I have a form that has a combo box on it (cboProduct). I need users to be able to select multiple products but I know that combo boxes don't allow this. I've made the combobox into 2 columns. One for the product (or group of products which just acts as the visual label) and the other for the criteria I'd like to pass to the query (which is the bound column). So, the combo box is like this:
Column1(display)-----Column2(bound)
Product1-------------Product1
Product2-------------Product2
Product3-------------Product3
Product1/Product2----Product1 or Product2
Product1/Product3----Product1 or Product3
In the Product field of the query I have the criteria:
Like[forms]![frmselectReport]![cboProduct])
I would think this would work because when I manually type the criteria in the query without referencing the combo box I type this:
Like Product1 or Product2
And it will work. The query itself changes it to Like "Product1" or "Product2" but I've even tried adding the quotation marks in my combobox too to no avail. The query and combobox work fine with the single products so I know it's set up right and reading right but I can't figure out the exact syntax to pass to the query to make it qry the multiple products selections...
I hope I explained that okay!! Any advice?
Thank you so much!
PLEASE RECYCLE AND ENCOURAGE YOUR OFFICE/COWORKERS TO DO SO AS WELL.
Column1(display)-----Column2(bound)
Product1-------------Product1
Product2-------------Product2
Product3-------------Product3
Product1/Product2----Product1 or Product2
Product1/Product3----Product1 or Product3
In the Product field of the query I have the criteria:
Like[forms]![frmselectReport]![cboProduct])
I would think this would work because when I manually type the criteria in the query without referencing the combo box I type this:
Like Product1 or Product2
And it will work. The query itself changes it to Like "Product1" or "Product2" but I've even tried adding the quotation marks in my combobox too to no avail. The query and combobox work fine with the single products so I know it's set up right and reading right but I can't figure out the exact syntax to pass to the query to make it qry the multiple products selections...
I hope I explained that okay!! Any advice?
Thank you so much!
PLEASE RECYCLE AND ENCOURAGE YOUR OFFICE/COWORKERS TO DO SO AS WELL.