Disable Escape Key while processing

P_Henry

Registered User.
Local time
Today, 23:12
Joined
Dec 3, 2003
Messages
63
Hi,

I have gone through the posts and found out how to trap the escape key (By using the Keydown event). However, I want to be able to disable escape key when processing .
The process includes the following:
Update status fields in the form --> Compose and send email --> Write audit trail --> Update table using query --> Finally display message to say processing is comeplete.

The whole thing runs really fast but one of the users had hit the escape button in the middle of the processing. So, what has happend is the status fields are updated but none of the other processing has happened. There is no rollback mechanism here. If I trap the escape key, the system does not resume processing. Iguess what I want is undisturbed processing. Is there a possibility to do this?

Thanks,
Priya:banghead:
 
Hi John,

I did add this code from this website- what it does its that it disables the key when it is pressed but the processing does not continue.

Tx,
Priya
 
To be honest I would have thought that if the ESC was disabled it should have had no effect on your code. However it may be interrupting a process (Sending Email) external to Access which then stops the rest of your process from completing.
 
Thanks John..in this case it is stopping further processing - even running the queries. Is there any other solution?
 
Thanks Bob...Seems to be complex but will have a go.
 

Users who are viewing this thread

Back
Top Bottom