J
John S. Ford, MD
I'm working in Access 97. I have a ComboBox on a form. When a user tries
to enter a value that is not one of the choices, an error occurs: "The text
you entered isn't an item in the list." If the user tries to delete his
choice and get out he gets another error: "You tried to assign the Null
value to a variable that isn't a Variant data type."
The problem with the second error is that there appears to be NO way the
user to escape the ComboBox even if he tries to delete his entry completely
without the same error message coming up. The only way to get out is to
select a random choice from the list and then delete it later.
Is there a more graceful way of exiting this situation? Can I trap one (or
both) of these errors and right an error handler with my own messages? How
do you pros handle this problem?
John
to enter a value that is not one of the choices, an error occurs: "The text
you entered isn't an item in the list." If the user tries to delete his
choice and get out he gets another error: "You tried to assign the Null
value to a variable that isn't a Variant data type."
The problem with the second error is that there appears to be NO way the
user to escape the ComboBox even if he tries to delete his entry completely
without the same error message coming up. The only way to get out is to
select a random choice from the list and then delete it later.
Is there a more graceful way of exiting this situation? Can I trap one (or
both) of these errors and right an error handler with my own messages? How
do you pros handle this problem?
John