internette birşey aramaya gerek kalmadı
her sorunun çözümü burada
bende kullandım expression sorunu çözümünü .
teşekkürler
Data Type Mismatch Hatası Hakkında
Data type mismatch hatasi veriyor lutfen yardimci ola bilirmisiniz
private void button1_Click(object sender, EventArgs e)
{
baglanti.Open();
OleDbCommand komut = baglanti.CreateCommand();
komut.CommandType = CommandType.Text;
// string Daxil_olma_tarixi = Daxil_olma_tarixi.ToString("yyyyMMdd");
komut.CommandText = "insert into Daxil_olan_senedler(Daxil_olma_nomresi, Daxil_olma_tarixi, Kodu, Gonderenin_kodu, Qeydiyyat_tarixi, Qeydiyyat_nomresi, Gonderen_sexs, Qisa_mezmun) values('" + textBox1.Text + "' , '" + textBox2.Text + "', '" + textBox3.Text + "', '" + textBox4.Text + "', '" + textBox5.Text + "', '" + textBox6.Text + "', '" + textBox7.Text + "', '" + textBox8.Text + "')";
komut.ExecuteNonQuery();
baglanti.Close();
textBox1.Text = "";
textBox2.Text = "";
textBox3.Text = "";
textBox4.Text = "";
textBox5.Text = "";
textBox6.Text = "";
textBox7.Text = "";
textBox8.Text = "";
MessageBox.Show("Record Inserts Succesfully !");
}
(20/05/2017, 13:19)Ceyhun Babayev yazdı: Data type mismatch hatasi veriyor lutfen yardimci ola bilirmisiniz
private void button1_Click(object sender, EventArgs e)
{
baglanti.Open();
OleDbCommand komut = baglanti.CreateCommand();
komut.CommandType = CommandType.Text;
// string Daxil_olma_tarixi = Daxil_olma_tarixi.ToString("yyyyMMdd");
komut.CommandText = "insert into Daxil_olan_senedler(Daxil_olma_nomresi, Daxil_olma_tarixi, Kodu, Gonderenin_kodu, Qeydiyyat_tarixi, Qeydiyyat_nomresi, Gonderen_sexs, Qisa_mezmun) values('" + textBox1.Text + "' , '" + textBox2.Text + "', '" + textBox3.Text + "', '" + textBox4.Text + "', '" + textBox5.Text + "', '" + textBox6.Text + "', '" + textBox7.Text + "', '" + textBox8.Text + "')";
komut.ExecuteNonQuery();
baglanti.Close();
textBox1.Text = "";
textBox2.Text = "";
textBox3.Text = "";
textBox4.Text = "";
textBox5.Text = "";
textBox6.Text = "";
textBox7.Text = "";
textBox8.Text = "";
MessageBox.Show("Record Inserts Succesfully !");
}
Merhaba.
Tabloya kaydedilecek alanların veri türünün görülmesi için projenizin incelenmesi gerekli.
Kodda tüm alanlar için '" + textBox1.Text + "' şeklinde tek tırnak eklenmiş. Sorun muhtemelen ' ile ilgili.
İlgili bölüme projenizi ekleyerek yeni konu açınız.
Konuyu Okuyanlar: 2 Ziyaretçi