Hata:
Sorgu değerleri ile hedef alanların sayısı aynı değil.Kodlar:
OleDbConnection baglan = new OleDbConnection("Provider=Microsoft.Jet.OleDb.4.0;Data Source=Ürünler.mdb");
DialogResult sonuc;
sonuc = MessageBox.Show("Bu Veriyi Kaydetmek İstiyormusunuz ?", "Uyarı", MessageBoxButtons.OKCancel);
if (sonuc == DialogResult.OK)
{
baglan.Open();
OleDbCommand kmt = new OleDbCommand("Insert into pckayit(İsim,Adres,Telefon,Cihazadı,Serino,Tamirnotu,Ücret) VALUES ('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "','" + textBox5.Text + "','" + textBox6.Text + "')", baglan);
kmt.ExecuteReader();
// OleDbCommand kayıtSorgusu = new OleDbCommand();
//kayıtSorgusu.CommandText = "INSERT Into pckayit ([])Values ("')";
// kayıtSorgusu.Connection = baglan;
// kayıtSorgusu.ExecuteNonQuery();
baglan.Close();
textBox1.Clear();
textBox2.Clear();
textBox3.Clear();
textBox4.Clear();
textBox5.Clear();
textBox6.Clear();
textBox8.Clear();
DatagridYenileee();
MessageBox.Show("Veriler Kaydedildi");
}Bu Sorun eklemede Değil Güncellemedede Var Silme Düzgün Çalışıyor ama bu Böyle
