Displaying the correct item in a combo box when loading a form.

Hi all.

I am loading a form with a combo box on it.  
In the combo box, item 0 = M, 1 = A, 2 = A, 3 = B, 4 = O.
When I load the form I collect a number from a database which tells me what the combo box is set as.
The question is how do I get the combo box to have item 3 already selected?
At the moment instead of displaying B in the combo it displays the number 3.

Any help much appreciated.

Cheers,
Shivermetimbers.
shivermetimbersAsked:
Who is Participating?
 
_agj_Commented:
u can set the ListIndex property of the combo to 3.
0
 
shivermetimbersAuthor Commented:
Ha! Excellent - I knew it would be an easy one, just couldnt quite get there myself!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.