VBA Code: Disable right click (1 Viewer)

richardw

Registered User.
Local time
Today, 12:01
Joined
Feb 18, 2016
Messages
48
Hi all,

I am using Access 2007 and I'd like to disable right clicks on forms through a VBA code (not from the Access menue or other).

If someone could help, I'll be grateful even after the incarnation of my little soul.

Thanks in advance :)
 

ByteMyzer

AWF VIP
Local time
Today, 12:01
Joined
May 3, 2004
Messages
1,409
To disable right-click on a form via VBA code, use the following syntax:
Code:
Forms("MyForm").ShortcutMenu = [COLOR="Navy"]False[/COLOR]
 

richardw

Registered User.
Local time
Today, 12:01
Joined
Feb 18, 2016
Messages
48
Thank you ByteMyzer. It worked !
 

Users who are viewing this thread

Top Bottom