How can I prevent shortcut menus

I get standard menus on fields where I don't have my own shortcut menu.  How can I prevent the standard shortcut menus?

Thanks in advance

CRB
Clive BeatonAccess DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Anders Ebro (Microsoft MVP)Microsoft DeveloperCommented:
Its a setting under options->Current database called "Allow default shortcut menus".

This will also disable the menus for you, but you can override this by holding down Shift while opening the database.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Clive BeatonAccess DeveloperAuthor Commented:
Thank you very much, Anders,

Clive
0
Dale FyeOwner, Developing Solutions LLCCommented:
Unfortunately, the technique described by Anders turns off all the built-in menus.

Each form also has a method that allows you to block shortcut menus, you can set "Shortcut Menu" = No, but again that blocks all shortcut menus on a form.  To overcome this, you can use the MouseUp event, check for the right click, and then use the commandbars ShowPopup method to display your menu.

Another alternative would be to use the Form Open and Form Close event to disable/enable specific commandbars:

CommandBars("form datasheet row").Enabled = False

but you will need to know the name of the commandbars you want to disable, and need to make sure you enable them again on form close or they will not show up on other forms either.  To do this, you will need to know the name or index of the commandbar, if you download the Access Shortcut Tool, it will provide that information.
0
Clive BeatonAccess DeveloperAuthor Commented:
Thanks Dale.  Very much appreciated.

Clive
0
Dale FyeOwner, Developing Solutions LLCCommented:
hope it helps
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.