Combo box help

J

jayklmno

I have a combo box that a value is chosen from...

If the user chooses the 4th item in the list, if the list refreshes during
the subsequent on change actions, how do I tell the combobox to Display that
value again?
 
N

Nigel

The fourth item in the list is identified as the ListIndex value for the
control = 3, However if the control is being refreshed then there maybe no
guarantee that the list contains the same items or in the same order, if you
know they will be then store the ListIndex value before the update and
reapply it after. Otherwise if the item is in the list set the control to
the stored value not the list index. If the item is not in the control you
need to decide what action to take first before deciding on the code to use.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top