Loop through a dataset

Dthomson

New member
Joined
Mar 29, 2005
Messages
2
Programming Experience
1-3
Can anyone help me.
I want to select an item in a list box(filled from a dataset) and see its
corresponding details in some text boxes. I have all the info I need in the dataset I just need to access certain data depending on the item selected in the list box
 

bloukewer

Well-known member
Joined
Jul 2, 2004
Messages
88
Programming Experience
3-5
Did you bind the listbox to the datasource or do you "manually" fill it up? Anyways, use the value that listbox.selectedindex returns and then say datasetname.tables("Tablename").rows(value)("Columname")
 

mzim

Well-known member
Joined
Jun 3, 2004
Messages
187
Location
Other side of the rock
Programming Experience
1-3
Dthomson said:
Can anyone help me.
I want to select an item in a list box(filled from a dataset) and see its
corresponding details in some text boxes. I have all the info I need in the dataset I just need to access certain data depending on the item selected in the list box

see this one. http://www.vbdotnetforums.com/showthread.php?p=6900#post6900
you get some idea regarding your problem.
 
Top Bottom