Easy CombBox Question.
Posted on 2006-10-30
I have a ComboBox control and the style property is set to 2, so the user cannot write on it, this combo has all the States of and I filled up like this:
Do while not rsStates.Eof
cbmStates.AddItem rsStates!StateName & space(50) & rsStates!StateId
So, in the combo has "California CA" and one of this for each state.
but I need to display the data from a table, at this point I cannot put any data on the combo because style 2 is read only.
If my table has Born in Texas, I need to put "Texas" on the combo.
I guess, I need to use the listindex property but how to assing it.
Thank you guys.