PC Review


Reply
Thread Tools Rate Thread

Deactivate Escape Key

 
 
John Renkar
Guest
Posts: n/a
 
      18th Jun 2004
I have a form with a tab control and multiple pages. One of the end users
filled out most of the form and then hit the Escape key, which deleted his
data. Is there any way to disable the escape key, or to capture the key
press and tell Access to ignore its normal function and not delete the
information?

Thank You


 
Reply With Quote
 
 
 
 
Albert D. Kallal
Guest
Posts: n/a
 
      18th Jun 2004
I do as you ask quite a bit.

(in fact, in application, I actually made the esc key = save and close!)


All you need to do is in the forms property sheet, set the key preview =
yes, and then in the forms key-down event, go:


if KeyCode = vbKeyEscape then
KeyCode = 0
end if


--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
(E-Mail Removed)
http://www.attcanada.net/~kallal.msn


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I deactivate Escape key in Access =?Utf-8?B?QXJtYW5kbw==?= Microsoft Access VBA Modules 1 23rd Mar 2006 03:30 AM
Escape P.McCartney Microsoft Powerpoint 3 6th Nov 2005 12:51 AM
Escape key Simonglencross Microsoft Access Form Coding 3 20th Feb 2005 06:50 AM
Escape sequence to dotmatrix printer - Escape() API Funbeat Microsoft Dot NET Framework 1 3rd Aug 2004 11:24 AM
Javascript escape & JScript GlobalObject.escape Hugo Wetterberg Microsoft ASP .NET 1 15th Mar 2004 06:48 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:28 PM.