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!

display the value from database in vbComboDrop-DownList

Status
Not open for further replies.

Jefree

Technical User
Mar 19, 2002
9
US
How do I display a value in this type of combo box? The text property is read only.
 
What datatype? If you want to display value from a database field into a combobox, try this:

If it's a ADODB Connection

RS.MoveFirst 'RS=your recordset
With RS
Do until .EOF
Combo1.AddItem .YourFieldName
RS.MoveNext
Loop
End with

Note: Combo1.AddItem Yourtable.Fields("fieldname").Value
is what you look for.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top