Skip to main content

AccessTr.neT


ListBox Ve TextBox

ListBox Ve TextBox

#6
(10/04/2011, 22:58)ercansahin yazdı:
Private Sub ListBox1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ListBox1.SelectedIndexChanged
       Dim baglanti As New OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data Source='db.mdb'")

       baglanti.Open()
       Dim komut As New OleDb.OleDbCommand("SELECT * FROM Tablo1 Where Nick = '" & ListBox1.SelectedItem & "'", baglanti)

       Dim getir As OleDb.OleDbDataReader
       getir = komut.ExecuteReader()
       getir.Read()

       TextBox1.Text = getir("Nick")

       baglanti.Close()
   End Sub
Ekleyerek denermisiniz.

Merhabalar rica etsem  bu kodları accesse uyarlayabilir misiniz?
prtkl, 09-03-2010 tarihinden beri AccessTr.neT üyesidir
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
ListBox Ve TextBox - Yazar: ~~KaG~~ - 10/04/2011, 22:57
Cvp: ListBox Ve TextBox - Yazar: ercansahin - 10/04/2011, 22:58
Cvp: ListBox Ve TextBox - Yazar: prtkl - 14/10/2015, 12:53
Cvp: ListBox Ve TextBox - Yazar: ~~KaG~~ - 10/04/2011, 23:00
Cvp: ListBox Ve TextBox - Yazar: ercansahin - 10/04/2011, 23:04
Cvp: ListBox Ve TextBox - Yazar: ~~KaG~~ - 10/04/2011, 23:08
Cvp: ListBox Ve TextBox - Yazar: atoz112 - 14/10/2015, 13:12