I want to insert data to my access database by combobox that have some item in it but some time when I want insert some thing there is not exist in my combobox how can write it down manually on my combobox and insert it to my db
OleDbCommand cmd = new OleDbCommand();
cmd.CommandType = CommandType.Text;
cmd.CommandText = "insert into [data] ( [Description] ) values ('" + comboBox10Text + "' )";
cmd.Connection = con;
con.Open();
cmd.ExecuteNonQuery();
System.Windows.Forms.MessageBox.Show("Data Inserted Successfully");