- Beranda
- Komunitas
- Tech
- Programmer Forum
Vb6 Error on datalist data not showing on textbox


TS
khabibb28
Vb6 Error on datalist data not showing on textbox
How do I fix this error.
I am setting a datalist like this (see img):

And I have table like this:
+-----------------------+
|---ID----|---NAME--|
+-----------------------+
|---101---|---CNN---|
|---102---|---BBM---|
+-----------------------+
On the datalist I am using `ID` for `listfield`. I want show the name directly in the textbox when i choose `ID` list from `listfield`.
e.g. : i choose ID 101 in datalist then show CNN in textboxname
Problem: the textbox just shows "false".
How do I fix this code.
please help me
thanks
I am setting a datalist like this (see img):

And I have table like this:
+-----------------------+
|---ID----|---NAME--|
+-----------------------+
|---101---|---CNN---|
|---102---|---BBM---|
+-----------------------+
On the datalist I am using `ID` for `listfield`. I want show the name directly in the textbox when i choose `ID` list from `listfield`.
e.g. : i choose ID 101 in datalist then show CNN in textboxname
Code:
Private Sub DataList1_Click()
Txtnama.Text = DataList1.ListField = "nama"
End Sub
Problem: the textbox just shows "false".
How do I fix this code.
please help me
thanks
Diubah oleh khabibb28 26-05-2017 12:44


nona212 memberi reputasi
1
482
0


Komentar yang asik ya


Komentar yang asik ya
Komunitas Pilihan