I have a query which selects from the db where value=combobox.selectedtext.
However, what I want to do is for the where value to check all values of the combobox.
Can someone offer advice as to how this would be done?
My sql query is this at the minute:
Dim sqlOpServ As String = ("SELECT DISTINCT col1, col2 from table1, table2 where test=test1 AND value= '" & combobox1.SelectedItem & "' ORDER BY col1 ASC")
Thanks
I don’t have VS right know so I I will try you help you without trying my code:
After the comments:
If you have used a datatable to fill your combobox
I hope I helped