D
David Anderson
I have a combo box on a form that is limited to a predefined list of options.
If a user types in something not in the list then he will get an error
message as soon as he exits the control. However, I would prefer it if I
could prevent such an error from ever occurring, i.e. I want to prevent the
user from typing in anything that does not match all or part of an existing
list entry.
For example, if the list was Cat, Dog, Hamster, I would want the combo box
to accept a first character of c, d or h but to ignore the typing of any
other character.
Is there any easy way to achieve this? Note that the combo box is bound to a
hidden numeric key field.
David
If a user types in something not in the list then he will get an error
message as soon as he exits the control. However, I would prefer it if I
could prevent such an error from ever occurring, i.e. I want to prevent the
user from typing in anything that does not match all or part of an existing
list entry.
For example, if the list was Cat, Dog, Hamster, I would want the combo box
to accept a first character of c, d or h but to ignore the typing of any
other character.
Is there any easy way to achieve this? Note that the combo box is bound to a
hidden numeric key field.
David