Tim L
Registered User.
- Local time
- Today, 17:03
- Joined
- Sep 6, 2002
- Messages
- 414
I have combo box that displays three columns of data when the user clicks on it. When the user has made their selection the display reverts to just one (as I would expect - unless anyone can tell me how to get all still displayed...). I would like to have a text box reflect the contents of the remaining, now hidden, columns.
I figure that I should put my code in the After Update event and have tried the following:
Dim tmpStr As String
' build the data to be displayed
tmpStr = me.combo.value(2) & " " & me.combo.value(3)
me.txtBox.value = tmpStr
However this produces a Type Mismatch Error.
From experimenting I have determined that the statement
me.combo.value
is the cause.
I'm fairly certain that I have heard of this being done before (and also think that I may have even done it) but I am having a bad brain day.
I've tried searching based on Combo and had a look at my subscribed threads but no luck. Am I dreaming or is it really not possible to do what I am trying to do???
Tim
I figure that I should put my code in the After Update event and have tried the following:
Dim tmpStr As String
' build the data to be displayed
tmpStr = me.combo.value(2) & " " & me.combo.value(3)
me.txtBox.value = tmpStr
However this produces a Type Mismatch Error.
From experimenting I have determined that the statement
me.combo.value

is the cause.
I'm fairly certain that I have heard of this being done before (and also think that I may have even done it) but I am having a bad brain day.
I've tried searching based on Combo and had a look at my subscribed threads but no luck. Am I dreaming or is it really not possible to do what I am trying to do???
Tim