Link to home
Start Free TrialLog in
Avatar of kenabbott
kenabbottFlag for United Kingdom of Great Britain and Northern Ireland

asked on

MS Access combo box Not On List

Hi

I have a form with a combo box with a list of names.  I want users to be able to type the start of names in so they go to the relevant item in the list (which they can).  However if the item is not on the list they get the 'item not on list' message and they are then forced to choose an existing item.

How do I use the 'Not On List' event to display a message saying 'Not on List' and then remove what they have entered  to allow them to continue without the the Access 'Not on list' message being displayed.

At present it is not a requirement for users to be given the option of adding what they have typed to the list.

Many thanks
ASKER CERTIFIED SOLUTION
Avatar of Bitsqueezer
Bitsqueezer
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
You've already gotten some helpful links above.

However, I'm questioning your design.  When a user types something into a combobox that isn't in the list, the typical behavior is to allow them to correct it slightly to find the desired value.  Your approach would clear out what they've typed (which might be many characters) and force them to start over from the beginning.  Is this departure from standard behavior really what you want?
Avatar of kenabbott

ASKER

I take your point but in this instance this is not a problem due to the nature of this particular dropdown
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.