try { con.Open(); string search = "select Amount from Mess_Plans Where PlanName='" + comboBox1_SelectPlan.Text + "' ;"; OleDbCommand cmd1 = new OleDbCommand(search, con); String i = cmd1.ExecuteReader(); MessageBox.Show("slected" +i); } catch(Exception e2) { MessageBox.Show(e2.ToString()); } finally { con.Close(); }
comboBox1_SelectPlan.SelectedValue
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)