Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi-Select Listbox Data Retrieving

Status
Not open for further replies.

jtrembla

ISP
Jul 6, 2006
104
US
I have one multi-select list box. When a user selects values, I send that selection back to the database. How do I load the listbox with all possible selections and then highlight the one's the user already selected, which is stored in the database?

 
Populate the list as you did before.

Find which object are selected from your data source.

Loop through each item in the listbox and check to see if the item is in your selected list. If it is, set it as selected.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top