Solved

Access 2007 Ribbon Hide Tab

Posted on 2013-12-13
6
630 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 50

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 50

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
Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

 
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 50

Expert Comment

by:Gustav Brock
ID: 39719644
You are welcome!

/gustav
0

Featured Post

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
This article describes a method of delivering Word templates for use in merging Access data to Word documents, that requires no computer knowledge on the part of the recipient -- the templates are saved in table fields, and are extracted and install…
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

749 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