Dim strSelect As String = "SELECT * FROM Table1 WHERE city='ComboBox1.SelectedItem()'" Dim da As New OleDbDataAdapter(strSelect, con) Dim ds As New DataSet da.Fill(ds, "city")
Dim strSelect As String = "SELECT * FROM Table1 WHERE city='" & ComboBox1.SelectedItem& "'"
Dim strSelect As String = "SELECT * FROM Table1 WHERE city='" & ComboBox1.SelectedItem() & "'"
Dim strSelect As String = string.Format("SELECT * FROM table1 WHERE city='{0}'", ComboBox1.SelectedItem)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)