Solved

Escape button.

Posted on 1998-12-14
2
178 Views
Last Modified: 2012-05-04
I dont want my users to use the Ecape button on the
keyboard.
Does someone have a tip for this?
Code?
0
Comment
Question by:Booty
2 Comments
 
LVL 10

Accepted Solution

by:
brewdog earned 10 total points
ID: 1970917
Do you not want them to use it, ever, in your app? Or just at certain times?

On each form for which you want the Escape key not to work, set the KeyPreview property of the form to Yes and then write code for the KeyDown event of the form that ignores the key, i.e.:

If KeyCode = vbEsc Then Exit Sub

(The syntax might be a little different, but that's the gist.)

Is that what you're looking for?

brewdog
0
 

Author Comment

by:Booty
ID: 1970918
Yes, Thanks.


0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now