Solved

Is it possible to modify the right click menu in Access 2010?

Posted on 2014-02-11
5
1,050 Views
Last Modified: 2014-02-17
How can I modify the right click menu in Access 2010?

In my application I've hidden the menu, ribbon  and navigation window using the following code

    DoCmd.NavigateTo "acNavigationCategoryObjectType"
    DoCmd.RunCommand acCmdWindowHide
    DoCmd.ShowToolbar "Ribbon", acToolbarNo

and know that I could disable the entire right click menu by unchecking the "allow default shortcut menu" option.

But,  in some circumstances  I would like to allow the user to access several of the options on the short menu but not all of them.

Desired result on the right side.

For example when a report has been displayed in print preview if would be nice if they could right click and choose Print rather having to return to the form and click the print button.  Also the Print option on the short menu provides the print dialog allowing them to choose a printer other than the default.

I'm not set on removing them as illustrated if they can be disabled that works just as well.
0
Comment
Question by:11ptMan
5 Comments
 
LVL 34

Expert Comment

by:PatHartman
Comment Utility
If you compile the app to an .accde (don't forget to save the .accdr) and then rename it to .accdr you can force Access to pretend to be the runtime engine.  Once you do that, you either won't get the right-click menu at all or you'll get only the non-design options.
0
 
LVL 75

Expert Comment

by:DatabaseMX (Joe Anderson - Access MVP)
Comment Utility
"How can I modify the right click menu in Access 2010? "
The only way to modify any right click menu in >=A2007 is via VBA code. I don't recommend modifying the built in menus. If you have any custom right click menus from <=A2003 - you will need to use VBA code to add new ones or edit existing ones.

mx
0
 
LVL 47

Accepted Solution

by:
Dale Fye (Access MVP) earned 500 total points
Comment Utility
funny you ask.  I just published this article on using commandbars and it includes some code examples in the article and the accompanying database for doing just what you ask.

There is also a Part I, located here.
0
 

Author Closing Comment

by:11ptMan
Comment Utility
I apologize  for the delay in responding,  Your article provided exactly what I needed to accomplish the task. And as an added bonus I learned a great deal about the structure and use of both menus and tool bars.
0
 
LVL 47

Expert Comment

by:Dale Fye (Access MVP)
Comment Utility
glad i could help.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
Familiarize people with the process of utilizing SQL Server functions from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Ac…
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…

763 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

13 Experts available now in Live!

Get 1:1 Help Now