Disable some short-cut menu options Access 2007

I have an access database that I converted to an accde file to prevent users from accessing the code and I disabled the window that allows users to view objects.

Everything works good except that now a when a user right-clicks on a form they have the following options
Datasheet view
Pivottable view
pivotchart view
cut
paste
properties
close

I did not disable shortcut menu because I need cut and paste to be the only two available options in the shortcut menu on all forms.  The other options have the potential to mess up things.

Can anyone help in getting this done?

shortcut.bmp
RDLFCAsked:
Who is Participating?
 
Scott McDaniel (Microsoft Access MVP - EE MVE )Connect With a Mentor Infotrakker SoftwareCommented:
You'd have to build your own rightclick menus and use those instead of the default menus. This isn't too terribly easy in 2007/2010, and most of the time you're better off doing this in 2003 and then converting afterwards.

If you must build them in 2007/2010, you can use VBA to do so. Here's a good writeup from Garry Robinson about doing this:

http://www.vb123.com.au/toolbox/09_access/rightclick.htm

Toward the bottom of that article you'll see a tutorial on creating rightclick menus in 2007.

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.