SQL Search Statement Error
I have this code below to handle my search, but it could not recognize the part & SearchForm.ComboBox1.Text & . I think the the way I make the SQL to read combobox1 is wrong, but I don't know the right code to make sql read the combo1. I really appreciate any help. Thank you.
IfComboBox1.SelectedIndex >= 0Then
Dim houseSearchAsNew OracleClient.OracleDataAdapter("SELECT NAME, STATUS, ID, TIME AS TODAY_DATE FROM Table1 WHERE (ID = " & SearchForm.ComboBox1.Text &") AND (TIME > TO_DATE('6/1/2007', 'MM/DD/YYYY')) AND (STATUS <> 'VOID')", conn)
houseSearch.Fill(house_Dataset,
"houseSearch")SearchTable.DataGrid.DataSource = house_Dataset
SearchTable.DataGrid.DataMember =
"houseSearch"End If

