strConn="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\\Program Files\\BilgiEdinme\\data\\Kayit.mdb";
OleDbConnection myConn = new OleDbConnection(strConn);
myConn.Open();
bool ycev = false, mcev = false, gizli = false, kabul = false;
if(rb1a.Checked) ycev = true;
if(rb2a.Checked) mcev = true;
if(rb3a.Checked) gizli = true;
if(rb4a.Checked) kabul = true;
OleDbDataAdapter myDataAdapter = new OleDbDataAdapter();
strSql = "select * from basvuru";
OleDbCommand cmd=new OleDbCommand(strSql, myConn);
myDataAdapter.SelectCommand = cmd;
DataTable tbl = new DataTable();
myDataAdapter.Fill(tbl);
DataRow row;
row = tbl.NewRow();
row["b_sekli"] = cb1.Text;
row["b_soy_unvan"] = tb1.Text;
row["b_adi"] = tb2.Text;
row["b_tcno"] = tb3.Text;
row["hav_birim"] = cb2.Text;
row["hav_tarih"] = dtp1.Value;
row["ycev_tarih"] = dtp2.Value;
row["ycev_durum"] = ycev;
row["mcev_tarih"] = dtp3.Value;
row["mcev_durum"] = mcev;
row["bvr_gizli"] = gizli;
row["bvr_kabul"] = kabul;
row["aciklama"] = rtb1.Text;
tbl.Rows.Add(row);
OleDbCommandBuilder cb = new OleDbCommandBuilder();
cb.DataAdapter = myDataAdapter;
myDataAdapter.Update(tbl);