AccessTr.neT
Data Type Mismatch Hatası Hakkında - Baskı Önizleme

+- AccessTr.neT (https://accesstr.net)
+-- Forum: Microsoft Access (https://accesstr.net/forum-microsoft-access.html)
+--- Forum: Access Cevaplanmış Soruları (https://accesstr.net/forum-access-cevaplanmis-sorulari.html)
+--- Konu Başlığı: Data Type Mismatch Hatası Hakkında (/konu-data-type-mismatch-hatasi-hakkinda.html)

Sayfalar: 1 2


Cvp: Data Type Mismatch Hatası Hakkında - numanbayulken - 16/04/2010

internette birşey aramaya gerek kalmadı
her sorunun çözümü burada Img-grin

bende kullandım expression sorunu çözümünü .
teşekkürler


Cvp: Data Type Mismatch Hatası Hakkında - Ceyhun Babayev - 20/05/2017

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



Cvp: Data Type Mismatch Hatası Hakkında - ozanakkaya - 20/05/2017

(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.