From access db (*.accdb) i retrieve 4 column of result set & store 1 column in list box. I have 3 labels.When i select a single row from list box, i want to get another 3 data which are comes with result set and try to put it in the specific label. How i will do it?
Please help me.
Thank you in advance!
Listbox and Accessdb
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.


Madhu KRank #1,514 · 1.1K reputationPosted Feb 6, 2011, 7:29 PM EST
You can do this on ListBox SelectedIndexChanged event.
//select * from table where listitemcolumn='ListBoxItem'
The above query returns all the rows for that listitem.
Use a datareader to get the values and display in the labels.