Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win


How to disable F11 key in Microsoft Access 2010 for users that log on via MDE

Posted on 2014-04-12
Medium Priority
Last Modified: 2014-04-14
Is it possible to stop the F11 key from showing the Navigation section on the left when a user is in Access via an mde frontend?
Question by:J.R. Sitman
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
  • 2
LVL 48

Expert Comment

by:Dale Fye
ID: 39996831
In the Access Options, under Current Database, there is an option (checkbox) which allows you to enable/disable special keys.  But that applies to all special keys.

If you only want to disable the F11 key, then the only way I know of is to set the KeyPreview property of your forms to Yes, and then add code to the forms KeyDown event to test and reset the KeyCode value

if KeyCode = vbKeyF11 then keyCode = 0

But you would have to do this with every form in your application.
LVL 75
ID: 39996862
You can disable the F11 key (and any other special 'F' keys & Control, Shift combinations) by using the special AutoKeys macro ... and creating an entry as shown below:

Inhibit F11:

Inhibit Shift+F11 (another example) - notice the plus (+) sign in from of F11
(use carot ^ for Control)

Shift F11
LVL 48

Expert Comment

by:Dale Fye
ID: 39997242
learn something new every day.

Good info, Joe.
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.


Author Comment

by:J.R. Sitman
ID: 39997349
I've never used or heard of Autokeys macro.  Can you give me instructions how to use it?
LVL 75
ID: 39997674
Just create a regular Macro with the exact Name of AutoKeys ...

In Design View:
Enter {F11} in the Name column  (including the curly brackets)
Select Beep for the Action.
Save the Macro.
A Macro with the specific name of AutoKeys is a special macro (if present) to Access, similar to AutoExec.

You can add as many lines in the macro as you need to inhibit whatever key or key combinations.

What version of Access are you using ?
I ask because the macro editor looks  quite different in <=A2003 and >=A2007.

I've had an AutoKeys Macro in every db since 1.0.

In fact, I have
AutoKeysSecure  - saved to AutoKeys for deployment with inhibited keys
AutoKeysDev      - blank - so all keys are functional during development
AutoKeys            - one of the above :-)


Author Comment

by:J.R. Sitman
ID: 39997698
Thanks, I'll give it a try.  I'm using 2010.
LVL 75

Accepted Solution

DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 2000 total points
ID: 39997713
OK ...
Note: I think you have to reload db one time for a change in AutoKeys macro to take place.

Plus sign (+) is Shift+Key
Carot sign (^) is Control+Key
So ... +{F10} inhibits Shift+F10 ... and so on


Author Comment

by:J.R. Sitman
ID: 39997818
need more help.  See screen shot.  Don't know what to do?
LVL 75

Assisted Solution

by:DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform) earned 2000 total points
ID: 39997827
Well ... I guess select 'Submacro' on the right, then try to mimic what I posted.
The A2010 macro editor is a bit more of an initial challenge to work with.

Author Closing Comment

by:J.R. Sitman
ID: 40000372
Thanks, got it working
LVL 75
ID: 40000386
You are welcome.


Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Instead of error trapping or hard-coding for non-updateable fields when using QODBC, let VBA automatically disable them when forms open. This way, users can view but not change the data. Part 1 explained how to use schema tables to do this. Part 2 h…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

618 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