AccessTr.neT
Access Veritabanındaki sadece istenilen verilerde KAYIT GÜNCELLEME - Baskı Önizleme

+- AccessTr.neT (https://accesstr.net)
+-- Forum: Visual Basic .NET (https://accesstr.net/forum-visual-basic-net.html)
+--- Forum: Visual Basic .NET Soruları ve Cevapları (https://accesstr.net/forum-visual-basic-net-sorulari-ve-cevaplari.html)
+--- Konu Başlığı: Access Veritabanındaki sadece istenilen verilerde KAYIT GÜNCELLEME (/konu-access-veritabanindaki-sadece-istenilen-verilerde-kayit-guncelleme.html)



Access Veritabanındaki sadece istenilen verilerde KAYIT GÜNCELLEME - chevy - 16/02/2014

Örnek üzerinde çalışırken şöyle bir ihtiyaç çıktı. Kayıt güncelleme işleminde; TCKimlikNo ve AdiSoyadi verilerinin güncellenmesini istemiyorum. Diğer veriler güncellenebilir. DataGridden veri seçildiğinde ilgili yerlere veriler geliyor. Oradan TCKimlikNo ve AdiSoyadi verileri değiştirilmek istendiğinde "BU ALANLARDA DÜZELTME İŞLEMİ YAPILAMAZ" gibi bir mesaj diğerler alanlarda ise düzeltme yapılabilip "VERİLERİNİZ GİRİLEN DEĞERE GÖRE GÜNCELLENDİ" gibi bir mesaj versin istiyorum. Yardımlarınızı bekliyorum şimdiden TEŞEKKÜRLER...


Cvp: Access Veritabanındaki sadece istenilen verilerde KAYIT GÜNCELLEME - POWER - 16/02/2014


Private Sub DataGridView1_CellClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles DataGridView1.CellClick
TextBox1.Text = IIf(IsDBNull(DataGridView1.CurrentRow.Cells(0).Value), "", DataGridView1.CurrentRow.Cells(0).Value) 'İlgili alan boş ise TextBox'a boş olarak ataması.
TextBox2.Text = IIf(IsDBNull(DataGridView1.CurrentRow.Cells(1).Value), "", DataGridView1.CurrentRow.Cells(1).Value)
TextBox3.Text = IIf(IsDBNull(DataGridView1.CurrentRow.Cells(2).Value), "", DataGridView1.CurrentRow.Cells(2).Value)
TextBox4.Text = IIf(IsDBNull(DataGridView1.CurrentRow.Cells(3).Value), "", DataGridView1.CurrentRow.Cells(3).Value)
TextBox5.Text = IIf(IsDBNull(DataGridView1.CurrentRow.Cells(4).Value), "", DataGridView1.CurrentRow.Cells(4).Value)
TextBox6.Text = IIf(IsDBNull(DataGridView1.CurrentRow.Cells(5).Value), "", DataGridView1.CurrentRow.Cells(5).Value)
TextBox7.Text = IIf(IsDBNull(DataGridView1.CurrentRow.Cells(6).Value), "", DataGridView1.CurrentRow.Cells(6).Value)
TextBox1.Enabled = False 'ilave ediniz
TextBox2.Enabled = False 'ilave ediniz
End Sub

ve


Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click
Temizle()
TextBox1.Enabled = True 'ilave ediniz
TextBox2.Enabled = True 'ilave ediniz
End Sub

yazınız...


Cvp: Access Veritabanındaki sadece istenilen verilerde KAYIT GÜNCELLEME - chevy - 18/02/2014

Çok Teşekkür ederim. Evet istediğim bu. iyiki varsınız. Sağolun