How to filter data when right click is disabled?

supernova

Registered User.
Local time
Today, 11:32
Joined
Mar 10, 2016
Messages
14
I have disabled "Allow Default Shortcut Menu" for security purposes but now I can't right click on my form and filter data. Any idea? Data type is date/time if this helps.

Thanks in advance
 
on the sample db "Allow Default Shortcut Menu" is enabled so you can view the macros used.
edit the form table1. look at the property of DateTime control.
goto property->others Shortcut menu.
it uses macro1, which in turns call MenuItem macro to show the filter.

if you are ready disable the default shortcut menu and run table1 form again.
 

Attachments

on the sample db "Allow Default Shortcut Menu" is enabled so you can view the macros used.
edit the form table1. look at the property of DateTime control.
goto property->others Shortcut menu.
it uses macro1, which in turns call MenuItem macro to show the filter.

if you are ready disable the default shortcut menu and run table1 form again.

Thanks. This worked great but can you explain why we need a submacro and can't do it in a single macro?
 
2 macros because the first macro (macro1) add our 2nd macro (MenuItem) for its menu.
you can't directly use MenuItem macro as Shortcut Menu bar for the control.
 

Users who are viewing this thread

Back
Top Bottom