refering to combobox in code

teiben

Registered User.
Local time
Today, 22:22
Joined
Jun 20, 2002
Messages
462
Help! I have a combobox combo22, which via SQL is hooked to tblMachineType w/many records for look up purposes.

combo22 rowsource is
selectdistict statement to SELECT DISTINCTROW tblMachineType.MachineTypeID. Its bound on the ID. The form displays the field type. This works great! but how would I get the value (not the ID) to show up in a textbox, I can only get the IDto show up.

ControlSource: ID
Name: Combo22

I've tried combo22.Column(2) and combo.ID; help
 
It would be

Me.combo22.Column(2)

But keep in mind the Column property is zero based, so 2 would be the 3rd column.
 
that doesn't work, any other ideas?
 
What is the rowsource of the combo and the number of columns setting?
 
Got It

Thank you, Thank you, Thank you
 

Users who are viewing this thread

Back
Top Bottom