Avatar of J.R. Sitman
J.R. SitmanFlag for United States of America

asked on 

Can you hide the ribbon and keep the Tabs in Access 2010?

it is possible to hide the Ribbon and keep the tabs?   I know how to hide the ribbon.  See attached

User generated image
Microsoft Access

Avatar of undefined
Last Comment
Bill Prew
Avatar of Bill Prew
Bill Prew

Have you tried the small "caret" at the far right of the ribbon, that does what you are describing.

User generated image
User generated image

»bp
Avatar of J.R. Sitman
J.R. Sitman
Flag of United States of America image

ASKER

I do know that. I was just wondering if there's a way to code it so that users didn't have to do it
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of J.R. Sitman
J.R. Sitman
Flag of United States of America image

ASKER

Put that in the onload event
Avatar of Bill Prew
Bill Prew

Right.


»bp
Avatar of J.R. Sitman
J.R. Sitman
Flag of United States of America image

ASKER

Thanks
Avatar of Eirman
Eirman
Flag of Ireland image

I use this code on a form button to toggle (hide/show) the ribbon and the Objects on the left.
The tabs always remain visible.
You can experiment by 'commenting' out sections of the code.

Private Sub CommandHIDE_Click()
    Static IsHidden As Boolean

    If IsHidden Then
        DoCmd.ShowToolbar "Ribbon", acToolbarYes
        DoCmd.SelectObject acTable, , True
        IsHidden = False
    Else
        DoCmd.ShowToolbar "Ribbon", acToolbarNo
        DoCmd.NavigateTo "acNavigationCategoryObjectType"
        DoCmd.RunCommand acCmdWindowHide
        IsHidden = True
    End If
End Sub

Open in new window

Avatar of J.R. Sitman
J.R. Sitman
Flag of United States of America image

ASKER

@Bill.   did not work.  The ribbon and tabs are hidden.
I do not recommend enforcing the ribbon's visibility.
Some users like it minimized, some like it maximized.
Thus, your application should not rely on the ribbon's visibility, neither assumes it is minimized or maximized, because there are no way to check the ribbon's state programatically.

If you are speaking about how access object are displayed (tabs or Windows), you can't interract with these programatically either.
Avatar of J.R. Sitman
J.R. Sitman
Flag of United States of America image

ASKER

Good point
Avatar of J.R. Sitman
J.R. Sitman
Flag of United States of America image

ASKER

@Bill.  Correction, it did work.   I had to go to the Current Database options and set it to "display document tabs"

Thanks
Avatar of J.R. Sitman
J.R. Sitman
Flag of United States of America image

ASKER

Thanks
Avatar of Bill Prew
Bill Prew

Welcome.


»bp
Microsoft Access
Microsoft Access

Microsoft Access is a rapid application development (RAD) relational database tool. Access can be used for both desktop and web-based applications, and uses VBA (Visual Basic for Applications) as its coding language.

226K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo