Solved

Access 2007 Ribbon Hide Tab

Posted on 2013-12-13
6
622 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
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
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

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)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Link Excel Spreadsheet to Access, not using Transferspreadsheet 5 29
Access Runtime 2010 Error 17 32
MS Access Tables Linking 6 42
Excel Hyperlink Question 4 31
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this article we discuss how to recover the missing Outlook 2011 for Mac data like Emails and Contacts manually.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
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…

920 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

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now