Hi guys.. I need help with selecting an item in a listbox which gets its items from a database table using While-Wend Loop. The listbox lists the table's contents properly. My problem is how will I add the item I selected in the listbox (e.g. John, Erick) in another table in the same database? The index property only gives me the index number of an item. Any help is greatly appreciated. Thanks in advance!

So then you are wanting to use the text as the foreign key?

StringValue = List1.List(List1.ListIndex)


Good Luck

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.