if (checkBox1.Checked)
st = "Yes";
else
st = "No";
OleDbCommand cmd = new OleDbCommand("insert into TbSick ([Code Sick],Name,Family,[Phone Number],[Confiend Date],[Release Date],[Confiend Expense],[Code Bakhsh],[Code Doktore],[Code Room],[Code Nurse],Survive) values (@p1,@p2,@p3,@p4,@p5,@p6,@p7,@p8,@p9,@p10,@p11,@p1 2)", con);
cmd.Parameters.AddWithValue("@p1", txtcode.Text);
cmd.Parameters.AddWithValue("@p2", txtname.Text);
cmd.Parameters.AddWithValue("@p3", txtfamily.Text);
cmd.Parameters.AddWithValue("@p4", txttel.Text);
cmd.Parameters.AddWithValue("@p5", textBox5.Text);
cmd.Parameters.AddWithValue("@p6", textBox6.Text);
cmd.Parameters.AddWithValue("@p7", textBox7.Text);
cmd.Parameters.AddWithValue("@p8", textBox8.Text);
cmd.Parameters.AddWithValue("@p9", textBox9.Text);
cmd.Parameters.AddWithValue("@p10", textBox10.Text);
cmd.Parameters.AddWithValue("@p11", textBox11.Text);
cmd.Parameters.AddWithValue("@p12", st);
cmd.ExecuteNonQuery();
con.Close();