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

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?
J.R. SitmanIT DirectorAsked:
Who is Participating?
 
DatabaseMX (Joe Anderson - Microsoft Access MVP)Connect With a Mentor Database ArchitectCommented:
OK ...
Note: I think you have to reload db one time for a change in AutoKeys macro to take place.

Examples:
A2003
1
2
A2010/A2013
Plus sign (+) is Shift+Key
Carot sign (^) is Control+Key
So ... +{F10} inhibits Shift+F10 ... and so on

1
2
0
 
Dale FyeCommented:
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.
0
 
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
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:

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

Shift F11
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

 
Dale FyeCommented:
learn something new every day.

Good info, Joe.
0
 
J.R. SitmanIT DirectorAuthor Commented:
I've never used or heard of Autokeys macro.  Can you give me instructions how to use it?
0
 
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
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 :-)


mx
0
 
J.R. SitmanIT DirectorAuthor Commented:
Thanks, I'll give it a try.  I'm using 2010.
0
 
J.R. SitmanIT DirectorAuthor Commented:
need more help.  See screen shot.  Don't know what to do?
macro.png
0
 
DatabaseMX (Joe Anderson - Microsoft Access MVP)Connect With a Mentor Database ArchitectCommented:
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.
0
 
J.R. SitmanIT DirectorAuthor Commented:
Thanks, got it working
0
 
DatabaseMX (Joe Anderson - Microsoft Access MVP)Database ArchitectCommented:
You are welcome.

mx
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.