Disable MenuItem in Custom Menubar

  • Thread starter Thread starter Sandman2003
  • Start date Start date
S

Sandman2003

Guest
I have a custom menubar and want to disable certain menuitem based on my form.

Menu name is mmnuMenu and want disable "Delete Record" under "Edit" menu for one form.

Please help me.
 
If the purpose is to disallow deletions use form.allowdeletions=false

IF u wish to disable command buttons , use

commandbars(command-bar name).controls(controlname).enabled=false

commandbars("Menu bar").controls("edit").commandbar.controls("delete record").enabled=false


Use a form's activate , de_activate event to do enabling/disabling without affecting the rest of your application
 

Users who are viewing this thread

Back
Top Bottom