I have read a lot about this, but I'm very new to Access 2007 and custom ribbons and am having a really hard time figuring this out. I want to be able change the default ribbon depending on certain things.
So I started by creating a UsysRibbons table. The table has two records. One with a RibbonName of AdminTab and another with a RibbonName of AllUserTab. I want to programmatically display one or the other of the ribbons. I cannot simply change the form properties because I have way too many forms to do that. I need to be able to change the default ribbon.
So for example, code that would run when the database opens would say:
Any help would be GREATLY appreciated!
So I started by creating a UsysRibbons table. The table has two records. One with a RibbonName of AdminTab and another with a RibbonName of AllUserTab. I want to programmatically display one or the other of the ribbons. I cannot simply change the form properties because I have way too many forms to do that. I need to be able to change the default ribbon.
So for example, code that would run when the database opens would say:
Code:
If certaincondition = True then
What code do I put here to display the ribbon named AdminTab?
Else
What code do I put here to display the ribbon named AllUsersTab?
end if
Any help would be GREATLY appreciated!