I want to select an item on a combobox list based on its listindex - i.e., from program code. I have created a newindex for each item based on its database key. Would someone tell me, please, how to do this?
Printable View
I want to select an item on a combobox list based on its listindex - i.e., from program code. I have created a newindex for each item based on its database key. Would someone tell me, please, how to do this?
Why not use a DB-Combobox ? With that you can set it to display one field, and be 'bound' to another.
So, you would put in
DBCombo1.BoundText=123456
and the record with the id 123456 would be displayed in the combobox.
See the help for more details.
------------------
Mark "Buzby" Beeton
VB Developer
[email protected]
i guess i shy away from bound controls. But if that is the only way ....