private void button1_Click(object sender, EventArgs e)
{
string a = textBox1.Text;
string b = textBox2.Text;
string c = textBox3.Text;
string d = textBox4.Text;
OleDbCommand cmd = new OleDbCommand(@"insert into patientvalues(" + a + ",'" + b + "'," + c + ",'" + d + "',con)");
connection.Open();
cmd.Connection = connection;
cmd.ExecuteNonQuery();
connection.Close();
this.Hide();
cmd.ExecuteNonQuery();这提示未处理OleDbExcertion(查询值的数目与目标字段中的数目不同)