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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List Box Trouble 1

Status
Not open for further replies.

InsaneProgrammer

Programmer
Jan 17, 2001
44
US
I have a form with two list boxes. I populated the first list box with data from a database. The second list box is populated from the first one. The user picks things from list box one and they are entered into list box two. List box two will contain about 15 entries that I want to insert into a table. How do I get the data out of the list box? Can I use the index property to loop through the list box?
 
For I = 0 To List1.ListCount -1
Do whatever to List1.List(I)
Next I

This is the basic idea. You might want to change it around so you don't have to call the db 15 times?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top