I have a form with a combo box with the OnKeyDown event with the following code:
me.MyComboBox.Dropdown
but I am having problems with the users inadvertantly changing this value while trying to navigate the form.
I am looking for a way to do one of two things.
1. change the OnKeyDown event to only drop down when the down or up arrow keys are pressed; or
2. have the record reset (or the changes undone) when the user presses a specific key (I'm thinking the ESC key).
Is there a reference chart somewhere showing me the value of the various key on the keyboard so I can create a series of Select-Case statements to control the effects of specific key strokes?
Any ideas?
me.MyComboBox.Dropdown
but I am having problems with the users inadvertantly changing this value while trying to navigate the form.
I am looking for a way to do one of two things.
1. change the OnKeyDown event to only drop down when the down or up arrow keys are pressed; or
2. have the record reset (or the changes undone) when the user presses a specific key (I'm thinking the ESC key).
Is there a reference chart somewhere showing me the value of the various key on the keyboard so I can create a series of Select-Case statements to control the effects of specific key strokes?
Any ideas?
Last edited: