weird Cancel behavior (1 Viewer)

smig

Registered User.
Local time
Today, 13:21
Joined
Nov 25, 2009
Messages
2,209
I have a form with a Cancel button
I also set this button as "Cancel"

when I click this button on the form all is OK
but when I click Esc on the KeyBoard I get an error "3059-operation cancelled by user" while trying to update a table.

I tried both running an SQL or using a RecordSet :banghead:

the form's routine works fine.
The error raises in the routine called this form
 
Last edited:

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 18:21
Joined
May 7, 2009
Messages
19,231
it's a long bug in access while there is a query running and you press the esc key.
there has been no cure on this.
 

smig

Registered User.
Local time
Today, 13:21
Joined
Nov 25, 2009
Messages
2,209
it's a long bug in access while there is a query running and you press the esc key.
there has been no cure on this.

Thank you
look at my reply

DoEvents, Even in the beginning of the Cancel button code do the trick :confused:
Now I have to add it to many forms :rolleyes:
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 18:21
Joined
May 7, 2009
Messages
19,231
good for you, you found a solution.
have you tested it on successive esc key.
 

Users who are viewing this thread

Top Bottom