ComboBox Problem

ddrew

seasoned user
Local time
Today, 19:09
Joined
Jan 26, 2003
Messages
911
I have a combobox (cbo_Breed) that Holds the Breed_ID, Breed and BreedType_ID.

On the form opening I want to look at the thrird column and if its a "1" then to do something. How do I get the form to look at the third column? This is what I have written (I know its wrong, but needed a starting point)

Code:
If Me.Breed.[Column](3) = "1" Then
 
The column property is zero based, so the third column is 2.
 
The column property is zero based, so the third column is 2.

Thank you but its still not right as it throws an error (Compile Error: Method or data member not found) on Column
 
Looks like you need to use the name of the combo, not the field.
 

Users who are viewing this thread

Back
Top Bottom