Skip to main content

AccessTr.neT


nesne başvurusu bir nesnenin örneğine ayarlanmadı hatası

nesne başvurusu bir nesnenin örneğine ayarlanmadı hatası

#1
merhaba nesne başvurusu bir nesnenin örneğine ayarlanmadı adında bir hata alıyorum
kodum bu;
 try
           {
               listView1.Items.Clear();
               baglanti.Open();
               komut.Connection = baglanti;
               komut.CommandText = "insert into ybilgi (Sefer_No,Tarih,Saat,AdSoyad,Telefon,KoltukNo,Ucret,Cinsiyet,Binis) values('" + comboBox1.SelectedText + "','" + dateTimePicker1.Value.Date + "','" + comboBox2.SelectedItem.ToString() + "','" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" + textBox4.Text + "','" + comboBox2.SelectedText + "','" + comboBox3.SelectedText + "')";
               komut.ExecuteNonQuery();
               
           }
           catch (Exception w)
           {
               MessageBox.Show(w.Message);
             
           }
           baglanti.Close();
           verilerigoster();
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
nesne başvurusu bir nesnenin örneğine ayarlanmadı hatası - Yazar: quardio4 - 05/04/2016, 15:57
Task