I have created a custom menu bar named TIMETRACKER that replaces the standard Access MENU BAR when my application is started. The custom menu bar has 10 available pulldown menus on it such as "File", "Edit", "View" and so forth. Under the "File" pulldown menu I have such submenu items listed as "Login", "Logout", "Open", "Close" and so on.
When my application starts I immediately present the user with a login dialog box prompting the user for his/her password (username is already in the box via API call). What I want to achieve is to disable (gray out) the "Login" submenu item listed under the "File" pulldown menu. I have figured out how to disable/enable the top level of the menu bar via the following code:
set cbr=commandbars("Timetracker"
.Controls(1)
cbr.enabled=false
How to I step this down to the next level so that I can access individual submenu items and enable/disable those items. Any help would be greatly appreciated. Thanks in advance...
When my application starts I immediately present the user with a login dialog box prompting the user for his/her password (username is already in the box via API call). What I want to achieve is to disable (gray out) the "Login" submenu item listed under the "File" pulldown menu. I have figured out how to disable/enable the top level of the menu bar via the following code:
set cbr=commandbars("Timetracker"
cbr.enabled=false
How to I step this down to the next level so that I can access individual submenu items and enable/disable those items. Any help would be greatly appreciated. Thanks in advance...