VBA Code: Disable right click (1 Viewer)

richardw

Registered User.
Local time
Today, 04:13
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, 04:13
Joined
May 3, 2004
Messages
1,385
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, 04:13
Joined
Feb 18, 2016
Messages
48
Thank you ByteMyzer. It worked !
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Top Bottom