I have a ribbon display when my Access application opens. Call it dbMainTab.
This ribbon has 10 tabs but only tab 1 is displayed when the application opens. The first tab is nothing more than a series of nine buttons that display the other nine tabs individually that then have differing buttons for opening various other forms in the application.
When a button on ribbon tab 1 is pressed, it calls a function "ChangeRibbon". This merely sets the visible property of the correct tab to true and then invalidates the ribbon using the "InvalidateControl". The "ChangeRibbon" function then activates this ribbon tab. In addition, this function removes any of the other 9 tabs being displayed at that moment by setting boolean variables to false. (each tab utilizes getvisible)
This all works great...until I click on one of the buttons on one of the other 9 tabs to open a form. The issue is that when I close that form and come back to the load screen to view my main ribbon again, none of the buttons work on tab 1. Therefore, I can not get the other 9 tabs to load. No errors at all, the code runs as though everything is working, the other tabs just do not display.
Any help would be greatly appreciated. It is almost as though the main ribbon needs to be totally refreshed?
Thanks,
This ribbon has 10 tabs but only tab 1 is displayed when the application opens. The first tab is nothing more than a series of nine buttons that display the other nine tabs individually that then have differing buttons for opening various other forms in the application.
When a button on ribbon tab 1 is pressed, it calls a function "ChangeRibbon". This merely sets the visible property of the correct tab to true and then invalidates the ribbon using the "InvalidateControl". The "ChangeRibbon" function then activates this ribbon tab. In addition, this function removes any of the other 9 tabs being displayed at that moment by setting boolean variables to false. (each tab utilizes getvisible)
This all works great...until I click on one of the buttons on one of the other 9 tabs to open a form. The issue is that when I close that form and come back to the load screen to view my main ribbon again, none of the buttons work on tab 1. Therefore, I can not get the other 9 tabs to load. No errors at all, the code runs as though everything is working, the other tabs just do not display.
Any help would be greatly appreciated. It is almost as though the main ribbon needs to be totally refreshed?
Thanks,