2 fields in combobox, how to access one of them ?

nebon

Registered User.
Local time
Today, 21:29
Joined
May 14, 2003
Messages
51
hallo there , I have a combobox build upon a query, with 2 fields inside , how can I access one of them ? thnx in advance
 
Do you mean that you have a combo box with 2 columns in it? If so, use this syntax to access the first column if you are writing code in the form's module:
Me.cboBox.Column(0)
and this to access the second:
Me.cboBox.Column(1)
 
yes thats exactly what I meant , thnx alot for the help . :)
 
but where do you specify the combobox name ?
 
Replace MyComboboxName with the control name of your combo box.

Me.MyComoboxName.Column(0)
 

Users who are viewing this thread

Back
Top Bottom