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

Populating Multi-Column Combo Box

Status
Not open for further replies.

EddyLLC

Technical User
Mar 15, 2005
304
US
Can anybody help me populate a combo box in VB6 with data from an Access database. The issue I'm struggling with is the combo box must have multiple columns. Each record in the database has two fields and both fields must appear when the combo box pull down is activated.

Thanks
 
Does it truly need to have multiple columns or would a comma or whatever between the strings work? I don't think the standard combo box has multiple columns, but I bet you can find a control that does. A google search for "multiple column combo box vb" turned up and many others that look promising.

Tom
 
Be careful about one called Smartlistbox
It can crash your program by conflicting with other things
 

One way to 'fake' a multi columns in a regular combo box is to use a fixed length font, like a [tt]Courier New[/tt] with the Tab between columns
[tt]
Smith Joe Accounting
Clinton Bill President
Bunny Bugs Comedian[/tt]


Have fun.

---- Andy
 
Or it might be possible to modify the query to combine the two fields into one
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top