My combo box has two fields that I grab, can I bind the column to both
values.
It seems I can only do one.
You can only bind one column to an underlying field - the column you bind should
be the column that contains only unique values (each value is present in only
one row in the list so that there are no duplicates). If you need to display a
value in another column in the combo box from the selected row, you can set the
"Control Source" of a new text box to something like this:
=[ComboboxName].Column(1)
This would display the value in the *second* column of the selected record. At
runtime, combobox and listbox columns are "zero-indexed" - that means that the
first column is Column(0), the second column is Column(1), etc.. You can also
display multiple column values at once by concatenating the values together:
=[ComboboxName].Column(2) & ", " & [ComboboxName].Column(1)
If you simply want to retrieve a value from another column in your combo box,
you can use the same referencing method:
MyValue = [ComboboxName].Column(1) 'Second column's value
Lastly, if you are trying to *fill* two fields with values from two separate
columns in the combo box, the recommendation is to NOT store the second value.
If your second value can be determined from the first value in the combo box's
list, then that value can always be looked-up to eliminate storing redundant
data.