TheSearcher
Registered User.
- Local time
- Yesterday, 23:38
- Joined
- Jul 21, 2011
- Messages
- 365
I'm trying to disable the Shift Key Bypass functionality. I found the following methodology in an AI website. It seems simple enough but it doesn't work. Can anyone help? I want the autoexec macro to run even if the Shift key is held down.
To disable the shift key bypass in Microsoft Access, you need to modify the AllowBypassKey property to False using VBA code. This will prevent users from holding the shift key down while opening the database to bypass startup options like the AutoExec macro and the specified startup form.
Here's how to do it:
1. Open the VBA Editor: In Access, press Alt + F11 to open the Visual Basic Editor.
2. Go to Immediate Window: In the VBA Editor, navigate to View > Immediate Window.
3. Enter the Code: Type or paste the following code into the Immediate Window and press Enter:
Code
CurrentProject.Properties.Add "AllowBypassKey", False
1. Close the Editor: Close the VBA Editor.
2. Close and Reopen Access: Close and then reopen the Access database to test the change.
Now, holding down the shift key while opening the database will no longer bypass the startup options.
To disable the shift key bypass in Microsoft Access, you need to modify the AllowBypassKey property to False using VBA code. This will prevent users from holding the shift key down while opening the database to bypass startup options like the AutoExec macro and the specified startup form.
Here's how to do it:
1. Open the VBA Editor: In Access, press Alt + F11 to open the Visual Basic Editor.
2. Go to Immediate Window: In the VBA Editor, navigate to View > Immediate Window.
3. Enter the Code: Type or paste the following code into the Immediate Window and press Enter:
Code
CurrentProject.Properties.Add "AllowBypassKey", False
1. Close the Editor: Close the VBA Editor.
2. Close and Reopen Access: Close and then reopen the Access database to test the change.
Now, holding down the shift key while opening the database will no longer bypass the startup options.