ADezii,
I really can't thank you enough for your help!
After adapting your code to my database, unfortunately, I'm still missing an operator.
The error message says:
Syntax error (missing operator) in '[Recipe_Name] IN('Eggs Benedict','blah blah')'. Just like that -- no space between "IN" and the open parenthesis, and a single quote before the period at the end of the statement.
Shouldn't the error message start with Select? Is it even seeing anything up to the Where clause? It's picking up the values of the combo boxes, but when I look at the query in SQL view, it's still just a bunch of quotes and commas where the recipe names should be.
The only difference between your code (that you guaranteed to work) and mine is the loop that picks up the values in the combo boxes instead of using the array. (See below.) I copied and pasted your strBase and qdf.SQL statements into my code without making any changes.
I really can't thank you enough for your help!
After adapting your code to my database, unfortunately, I'm still missing an operator.
The error message says:
Syntax error (missing operator) in '[Recipe_Name] IN('Eggs Benedict','blah blah')'. Just like that -- no space between "IN" and the open parenthesis, and a single quote before the period at the end of the statement.
Shouldn't the error message start with Select? Is it even seeing anything up to the Where clause? It's picking up the values of the combo boxes, but when I look at the query in SQL view, it's still just a bunch of quotes and commas where the recipe names should be.
The only difference between your code (that you guaranteed to work) and mine is the loop that picks up the values in the combo boxes instead of using the array. (See below.) I copied and pasted your strBase and qdf.SQL statements into my code without making any changes.
Code:
With Me
For Each ctl In .Controls
If ctl.ControlType = acComboBox Then
If Not IsNull(ctl.Value) Then
strSQL = strSQL & "'" & ctl.Value & "', "
End If
End If
Next
End With
Comment