Skip to main content

AccessTr.neT


Data Type Mismatch Hatası Hakkında

alperalper00
alperalper00
8
11194

Data Type Mismatch Hatası Hakkında

#8
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 !");
        }
Cevapla

Bir hesap oluşturun veya yorum yapmak için giriş yapın

Yorum yapmak için üye olmanız gerekiyor

ya da

Bu Konudaki Yorumlar
Cvp: Data Type Mismatch Hatası Hakkında - Yazar: Ceyhun Babayev - 20/05/2017, 13:19
Task