>Hi all,
>i have set up a combo box so that the list contains the names i want displayed and their corresponding key values are in the itemdata bit.
>now, i want to display the value in the list that has a particular itemdata value. how is this done.
>i have tried setting the listindex to the itemdata value that i want but this doesn't work. do i have to loop through the list??
You need to do a loop (from 0 to ListCount-1) to compare your value to each ItemData. There is no search function.
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com