I've merged your two threads given that this is basically the same topic and the second thread provided a bit more information.
From the referenced database it appears to have four custom toolbars
"AgrMainMenu" - this appears to have been intended to be the only menu that would be available upon the database opening based upon the fact that the Employees form opens on database load. As explained earlier, bypassing the ribbon this way has been disabled in Acc2013+
"AgrmReport" - not sure where this commandbar is poping up. It should be part of the Add-Ins ribbon tab; however, not showing there as far as I can tell. Given that this is in the toolbars property of he form Access may be looking for a new style ribbon instead of the old style commandbar for Acc2013+
"AgrShortCut" - this is the shortcut or right-click menu
"Email" - once again, not sure where this commandbar is poping up. It should be part of the Add-Ins ribbon tab; however, not showing there as far as I can tell (same thought about the ribbon/toolbar...)
But was unable to Edit/Change or Delete the Shortcut menu or the Tools bar from the database
To delete the commandbar, use the
- Application.Commandbars("CommandbarNameHere").Delete
as already given.
From the design view of the referenced database, the commandbar in the Add-In tab is "AgrMainMenu"
To edit, we need a bit more information about how you want to edit the custombar and which one.
To create, you need to follow the directions already offered in my prior post about how to create the custom command bars in the newer versions of Access.
> The code attached to the shortcut command bar for the "Zoom" is the VBA Function ZoomOpen() in the Zoom_util module of the referenced database. That was attached to the
.OnAction
property of the button.
Perhaps a real old-school reference is needed here:
How to create command bars by using Visual Basic code in Access 2000
The examples here show more of the commandbar properties than my first links... of course, ignore the reference to the older MSO-Object library as you would be using the newer version for early binding as mentioned in my prior post.
Please note, we typically do not simply write code unless it's for something very simple or extremely complex for several reasons, one being that we are not sitting in front of your PC; thus unable to customize to your situation and the member will be able to apply their code/knowledge to other situations once they've developed the code for the current situation.