I'm looking for a reliable method to minimize the default MSAccess Toolbar Ribbon during the OnLoad() event.
I realize can totally HIDE the toolbar, but that's not exactly what I am looking to do - I just want to minimize the ribbon:
DoCmd.ShowToolbar "Ribbon", acToolbarNo 'Hides the full toolbar
DoCmd.ShowToolbar "Ribbon", acToolbarYes 'Show
I've tried a couple approaches, with mixed success:
In Access 2010 & 2013 (VB7):
CommandBars.ExecuteMso "MinimizeRibbon"
Earlier Versions:
SendKeys "^{F1}", False
Both of these approaches appear to operate as a TOGGLE between sessions. Is there a method to determine the current state and then apply the appropriate code?
I have users with Access: 2007, 2010, 2013
Thanks for any suggestions!
Mark