c# Search using ComboBox and Textbox
问题 I have a problem with this code. Every time I type a text in the TextBox this happen. there's an added column and its empty(I want to remove this) public void searchData() { string sql = "Select * from Inventory"; cmd = new OleDbCommand(sql, con); try { con.Open(); cmd.Connection.CreateCommand(); string value = cboFields.Text; switch (value) { case "ID": cmd.CommandText = "Select * from Inventory where ID LIKE @searchKey"; break; case "Quantity": cmd.CommandText = "Select * from Inventory