Combo Box - Display list from one column, but use Data from another column
Posted by Mark on November 15, 2001 11:09 AM
I have a combobox - fairly simple - that pulls its list of options from a column defined:
With cmbfirstfield
.RowSource = "FirstField"
.ListIndex = 0
End With
It correctly displays a drop down list with that column. When somebody selects an item from the combobox, I'd like it to use the data from another field, for instance:
Somebody selects "Red Widget with blue thingy" from the list. I want the data returned to be the part number, that is in the column adjacent to the item in the list.
They select "Red Widget" and part number "B17284" gets returned.
Any suggestions?