473,856 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Disable Hot Keys?

Okay, here's a question I should have posted a very very long time ago.
I'd like to prevent the user from being able to bypass certain error
handling and updating functions that are programmed into the "Save"
command button. Some of my apps are still running in A97, but most are
now running in A2K or subsequent versions.

Is it possible to disable the use of hotkey combinations such as
"Ctrl+S" in an Access application? If so, how? And does the answer vary
depending on the version?

Is this an issue that can only be addressed in the OS?
Nov 13 '05 #1
3 3899
On Tue, 07 Sep 2004 16:15:51 -0700, bonehead <se**********@h ere.org>
wrote:

You put your code in the wrong event. Move most of it to the
Form_BeforeUpda te event procedure. The Save command button just runs
RunCommand acCmdSaveRecord
That way, your special Save code executes regardless of how people try
to save a record.

-Tom.

Okay, here's a question I should have posted a very very long time ago.
I'd like to prevent the user from being able to bypass certain error
handling and updating functions that are programmed into the "Save"
command button. Some of my apps are still running in A97, but most are
now running in A2K or subsequent versions.

Is it possible to disable the use of hotkey combinations such as
"Ctrl+S" in an Access application? If so, how? And does the answer vary
depending on the version?

Is this an issue that can only be addressed in the OS?


Nov 13 '05 #2
Look at using the Autokeys macro for universal disabling.

Create a new Macro
Display the Macro Name column
In the Macro Name column type ^S
In the Action column Select Beep
Save the Macro and call it AutoKeys

That's it, Ctrl-S is now disabled in the database
--
Terry Kreft
MVP Microsoft Access
"bonehead" <se**********@h ere.org> wrote in message
news:ch******** **@gondor.sdsu. edu...
Okay, here's a question I should have posted a very very long time ago.
I'd like to prevent the user from being able to bypass certain error
handling and updating functions that are programmed into the "Save"
command button. Some of my apps are still running in A97, but most are
now running in A2K or subsequent versions.

Is it possible to disable the use of hotkey combinations such as
"Ctrl+S" in an Access application? If so, how? And does the answer vary
depending on the version?

Is this an issue that can only be addressed in the OS?

Nov 13 '05 #3
Terry Kreft wrote:
Look at using the Autokeys macro for universal disabling.

Create a new Macro
Display the Macro Name column
In the Macro Name column type ^S
In the Action column Select Beep
Save the Macro and call it AutoKeys

That's it, Ctrl-S is now disabled in the database


Ahh, very cool, thanks.
Nov 13 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2341
by: Flare | last post by:
In meen. primary keys, NOT NULL, IDENTETIES...et.c I have to do a maunally, one time, building of a database. Sometables has to stay an some are to be exchanged. The foreignkey inforcemnt ill do for my self so everything is correct. I just need to be allowed to de thede task for a while. Is it impossible? Regards Anders
2
5774
by: Dw70 | last post by:
I need write simple program with work in background and have only one function when it is run F1 I disable and when I pres for example ctrl+k it (program is terminate) maybe somebody have similar program or part of code I don't know how get signal F1 pressing and neutralize it?
3
6691
by: Stilgar[bbs.isca.uiowa.edu] | last post by:
Here's my newbie question: I have several VB forms which are all inherit a standard template form that I made. In my template form, I added a menu bar with some generic cut, copy, and paste functionality. I'd like to have the paste button disabled when the clipboard is empty, but I'm not sure how I should do this. Ideally, I suppose I'd like to constantly monitor the clipboard for data, (in a thread?) but I'm not even sure how I'd...
1
2931
by: Geroge D. Lake | last post by:
Hi, I need to disable the resizing of a datagrid. I have tried al day and no luck. Any Ideas? Thanks. George.
1
1954
by: johnb41 | last post by:
I have a datagrid that successfully allows editing and updating (with dataadapter.update command). I want the user to be able to edit the "text" in the datagrid, but i DON'T want the user to be able to DELETE rows. The OleDbCommandBuilder automatically creates the DELETE SQL statement. Is there any way I can disable it? If not, what approach should I be using? Thanks!
16
6282
by: MLH | last post by:
If I give someone a runtime app, they can open the database window by pressing the F-11 key. How to prevent???
2
5642
by: khng | last post by:
How to disable the copy/drag event for some selected textfield as I want the user to key in instead of copy or drag the required information. For IE, I done it with the onPaste and onDragEnter Event, but it don't work on Other Browser, so I need your helping hand
3
2599
by: voroojak | last post by:
hi I have a such abig problem. i have to disable the shortcut keys (table, query, report, .....) except form. the user should just be able to open form and all other the shortcut should be disable. i have one more problem and that is i want to disable my total field. i eman teh user cant enter any data in total fields. my total field is working under save buttom. i mean when i press teh save buttom it will calculate the total. it is working...
4
1947
by: muddasirmunir | last post by:
I am using VB6. I want that in my whole program the user can only enter data as numbers (0-9), alphabetical (a-z) and . (dot/point). How can I disable all the other keys? I know the code how to permit the keys in the keypress event of any textbox by using this code: Dim comp As Boolean comp = Chr(KeyAscii) Like "" If Chr(KeyAscii) = vbBack Then Exit Sub
16
6692
by: nagmvs | last post by:
Hi, Can any one tell me How to disable Keyboard Functions using JavaScript.If knows please tell me the code.Also tell me the code for mouse disable also. Thanks, Nagesh.
0
9903
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
11048
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10692
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10770
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7928
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5754
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5954
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4567
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
3194
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.