I have a custom ribbon which loads and work perfectly.
I now need to create some different views for different users with the app, each different type will need a different ribbon.
I don't want to run 3 different version of the app, so want to load the specific ribbon when Access opens.
I have the USysRibbons table setup with the XML and Ribbon Name, and have set the ribbon name is the application to "MyRibbon".
The plan was to change the ribbon name to "MyRibbon" in USysRibbons when the user logs in and load the appropriate ribbon from there.
This kind of works, however the first time the user logs in, it loads the ribbon that was there previously, then changes the name in the table, so the ribbon loads before the code fires. If you quit and restart Access the correct ribbon loads.
When the app first opens it checks to see if there are any updates based on version number, if it's not the right version number is closes, updates and re-opens, so after each update it will need to reset the ribbon, it will then be fine until the next update.
Any idea on how to get over this, and either run the code before the ribbon loads, or change the ribbon without quitting and restarting access?
I now need to create some different views for different users with the app, each different type will need a different ribbon.
I don't want to run 3 different version of the app, so want to load the specific ribbon when Access opens.
I have the USysRibbons table setup with the XML and Ribbon Name, and have set the ribbon name is the application to "MyRibbon".
The plan was to change the ribbon name to "MyRibbon" in USysRibbons when the user logs in and load the appropriate ribbon from there.
This kind of works, however the first time the user logs in, it loads the ribbon that was there previously, then changes the name in the table, so the ribbon loads before the code fires. If you quit and restart Access the correct ribbon loads.
When the app first opens it checks to see if there are any updates based on version number, if it's not the right version number is closes, updates and re-opens, so after each update it will need to reset the ribbon, it will then be fine until the next update.
Any idea on how to get over this, and either run the code before the ribbon loads, or change the ribbon without quitting and restarting access?