I am trying to get a combobox populate off of a previous combobox selection. I am receiving the syntax error:
Syntax Error (missing operator) in query expression 'Products.Product Name'.
Here is the code I have on the after update event of the first combobox:
Any help would be greatly appreciated.
Thank you,
KJ
Syntax Error (missing operator) in query expression 'Products.Product Name'.
Here is the code I have on the after update event of the first combobox:
Code:
Private Sub cboProductCategory_AfterUpdate()
On Error Resume Next
cboProductID.RowSource = "Select Products.Product Name, Products.Description, Products.List Cost, Products.Size, Products.Color " & _
"FROM Product " & _
"WHERE Products.Category = '" & cboProductCategory.Value & "' " & _
"ORDER BY Products.Size;"
End Sub
Any help would be greatly appreciated.
Thank you,
KJ