Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Prevent a dropdown box from autoselecting if value pre-exists

Status
Not open for further replies.

Carrion

Technical User
Jul 26, 2002
27
US
I have a dropdown box, with the on key press event, dropping down the list. When a selection is made, other fields auto fill. The field is the acronym for a group. In the list the group name is also displayed. What I need is to be able to both, enter an acronym have the list scroll down to the closest match, and only fill in the group name field, if I manually select the acronym in the list. This allows me to enter a new group name that has the same acronym as another pre existing group, and not auto fill the group name field with a name I don't want.
 
Check the AutoExpand property of your combo box. You want it to be false.
 
Oh, it is. That only prevents it from predicting what I am typing. I defenetly don't want that either, incase we have one group with the acronym "OSPI", and then we get another with "OSP". Thanks though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top