Solved

Access 2007 Ribbon Hide Tab

Posted on 2013-12-13
6
628 Views
Last Modified: 2013-12-15
Hi,

Is it possible to hide a tab on a user ribbon depending on the form that's used.  When I switch from one form to another I would like different options.

Thanks,

Bill
0
Comment
Question by:Bill Ross
  • 3
  • 2
6 Comments
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 250 total points
ID: 39718607
You can use Albert Kallal's ribbon class to hide/show objects of the ribbon:

http://kallal.ca/Ribbon/ribbon.htm

Or you can set different ribbons for different forms.

/gustav
0
 
LVL 14

Author Comment

by:Bill Ross
ID: 39718924
Thanks gustav, I'm looking at that now.

Along those same lines is there a way to activate a tab on the ribbon when a form is activated?
0
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 39718962
You don't need the class of Kallal.
Here's an example for setting a tab in a simple setup:

http://www.access-programmers.co.uk/forums/showthread.php?t=246015

/gustav
0
Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

 
LVL 24

Assisted Solution

by:Bitsqueezer
Bitsqueezer earned 250 total points
ID: 39719189
Hi,

one possible method is of course the use of getVisible - but another more simple one is that you create a specialized ribbon and simply assign it directly to the form by using the property "RibbonName" of the form.
Whenever you open the form, Access automatically insert the tab as the last one (can also contain more than one tab, then all of them).
This method has the advantage that also the title bar of Access will be separated and the form title and a separator is inserted. You can see the effect if you open a form in design mode: Two further tabs will be added to the ribbon with the separator and title into the Access title bar. If you close the form, both will be removed.

I recommend this site to learn anything about ribbons, includes some tools:

http://www.accessribbon.de/en/

Cheers,

Christian
0
 
LVL 14

Author Closing Comment

by:Bill Ross
ID: 39719205
Thanks for the help.  Got it!
0
 
LVL 49

Expert Comment

by:Gustav Brock
ID: 39719644
You are welcome!

/gustav
0

Featured Post

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

829 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question