Welcome to Dream.In.Code
Become a VB Expert!

Join 137,234 VB Programmers for FREE! Get instant access to thousands of VB experts, tutorials, code snippets, and more! There are 1,626 people online right now. Registration is fast and FREE... Join Now!




Write listbox items to database

 
Reply to this topicStart new topic

Write listbox items to database

chubbs
5 Mar, 2007 - 01:42 PM
Post #1

New D.I.C Head
*

Joined: 8 Feb, 2007
Posts: 2


My Contributions
Hi there

I have a combo box, populated with some products from a mySql database. I also have a list box and as the user click on the products in the combo box, they are added into the list box. Ok, so how do I write the complete content of the list box to a mySql database? I know the connection, insert statement, tables ect, it is just the listbox itself that I 'm not sure off. Should I use a loop and if so, how would I do it?

This is quite urgent so any help would be greatly appreciated.

Thanks a lot!!!
Tiaan
User is offlineProfile CardPM
+Quote Post

KeyWiz
RE: Write Listbox Items To Database
7 Mar, 2007 - 10:54 AM
Post #2

D.I.C Regular
Group Icon

Joined: 26 Oct, 2006
Posts: 428


Dream Kudos: 125
My Contributions
You can determine the NUMBER of items in a listbox, and then itierate throught them using the ListIndex property.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 12/4/08 04:02PM

Live VB Help!

VB Tutorials

Reference Sheets

VB Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month