What you describe is theoretically possible, but with limitations.
Even if you did not ask for it, here is my idea :
As described here , you can change your ComboBox text without changing its value . This allows you to "store" the base value while displaying both columns in one.
Listen to the SelectedIndexChanged Event and change the text property as follows:
Sub ComboBox1_SelectedIndexChanged() ComboBox1.Text = ComboBox1.Column(0) & "-" & ComboBox1.Column(1) End Sub
(This is just a basic example.) You cannot test it right now, but in .Net you can use CType to explicitly convert the sender argument to a ComboBox variable and access it that way.
The Boundcolumn property cannot be changed to multiple values. You can try using VbTab as a delimiter in the text box, but I'm not sure how it will appear.
Edit:
Do not forget the default values. I think your text box should show both the columns before and the user by clicking on the list for the first time.
Clijsters
source share