A
a.t.brooks
I have a combobox on a form. The values of the combobox are determined
by a lookup wizard which looks at a table in by DB.
I want to use refer to the text in the combobox as a string, but when
I use
Dim CB As String
CB = Me.ComboboxName
I get CB as being the value (1-5) as opposed to the text.
I have tried
Dim CB As String
CB = Me.ComboboxName.Text
Yet I get the error
"You can't reference a property or method for a control unless the
control has focus".
I've also tried
Dim CB As String
CB = Me.ComboboxName.Value
But get the number again.
Why is this not working?
Thanks in advance
Tony
by a lookup wizard which looks at a table in by DB.
I want to use refer to the text in the combobox as a string, but when
I use
Dim CB As String
CB = Me.ComboboxName
I get CB as being the value (1-5) as opposed to the text.
I have tried
Dim CB As String
CB = Me.ComboboxName.Text
Yet I get the error
"You can't reference a property or method for a control unless the
control has focus".
I've also tried
Dim CB As String
CB = Me.ComboboxName.Value
But get the number again.
Why is this not working?
Thanks in advance
Tony