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

How add items to combo box from Access DB

Status
Not open for further replies.

eelsar

Technical User
May 20, 2002
36
0
0
US
How do I add items from an Access DB field to a combo box in visual basic?
 
Open a recordset containing the items that you want to apear in the combo box. Loop through the recordset and use the additem method of the combo box to add the item.

combo1.clear
do while not rs.eof
combo1.additem rs![fieldvalue]
loop


Thanks and Good Luck!

zemp
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top