Escape

S

Scott

Is there code that is written that once a user clicks a
button on a form the code executes the same instance as
the user pushing the escape key?

Thank you.
 
T

Tom Lake

Scott said:
Is there code that is written that once a user clicks a
button on a form the code executes the same instance as
the user pushing the escape key?

Thank you.

Set the Cancel property of the button to True.

Tom Lake
 
T

tina

pressing Esc has different results, depending on what you last did in a
form. what do you want to happen when the user clicks the command button?
 
Top