Disable ribbon, office button & quick access toolbar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • convexcube
    New Member
    • Dec 2007
    • 47

    #1

    Disable ribbon, office button & quick access toolbar

    Hi everyone,

    I am trying to create a single window interface for my database. As I am using Access 2007, I have my document layout options set to tabbed documents without displaying documents tabs in order to get my main form to appear as the only element in the access application window. I have also set anchoring in the form so that controls that should always be visible are and others stretch to adjust to the size of the window. When resizing the window the ribbon, office button & quick access toolbar disappear when the window goes below a certain height. Does anyone know how to disable these controls permanently so they don't appear when I enlarge the window?

    Kind Regards,

    Ken.

    P.S. Also is it possible to set a minimum window size that resizing will not go below?
    Last edited by convexcube; Nov 24 '08, 05:21 AM. Reason: Addtitional related question
  • Megalog
    Recognized Expert Contributor
    • Sep 2007
    • 378

    #2
    Getting rid of the ribbon, office button, and QAT aren't possible, as far as I know. I can tell you how to add/remove items from each, but I have never seen anyone say exactly how to disable or remove them entirely. I've seen many discussions on the web, mostly around when Office 2k7 was in beta, griping about how we're stuck with the Office interface. I havent seen anything new since then.

    If you find anything newer, please let me know!

    Comment

    • ChipR
      Recognized Expert Top Contributor
      • Jul 2008
      • 1289

      #3
      Try: DoCmd.ShowToolb ar "Ribbon", acToolbarNo

      Comment

      • Megalog
        Recognized Expert Contributor
        • Sep 2007
        • 378

        #4
        Sweet! Learn something new every day.. tested it, works perfect.

        Comment

        • convexcube
          New Member
          • Dec 2007
          • 47

          #5
          Thanks

          Thanks ChipR, worked perfectly! Much appreciated

          Comment

          • DanicaDear
            Contributor
            • Sep 2009
            • 269

            #6
            Thank you ChipR, this worked for me too.
            Does anyone know if there is a way to get the ribbon to come back without removing the code?

            Comment

            • Megalog
              Recognized Expert Contributor
              • Sep 2007
              • 378

              #7
              I would think the opposite parameter would bring the ribbon back, like:

              Code:
              DoCmd.ShowToolbar "Ribbon", acToolbarYes

              Comment

              • DanicaDear
                Contributor
                • Sep 2009
                • 269

                #8
                Good point Megalog. I was hoping for a keyboard shortcut. I guess the moral of the story is don't put in this code in until your DB is ready to be implemented...o therwise you can't access the ribbon to do your work.

                Comment

                • dpminusa
                  New Member
                  • Nov 2009
                  • 3

                  #9
                  What about creating the simple Macro implied and setting it to a key combination like SHFT+Ctrl+F12.

                  DoCmd.ShowToolb ar "Ribbon", acToolbarYes

                  Comment

                  • DanicaDear
                    Contributor
                    • Sep 2009
                    • 269

                    #10
                    I like that idea dpminusa. I will try that. I don't know how to set a macro to a keyboard combination but I'd like to try to figure it out on my own before I ask a question on it. Thanks!

                    Comment

                    • dpminusa
                      New Member
                      • Nov 2009
                      • 3

                      #11
                      OK. I have it working with a passworded Form. Other articles I have seen recommend the Keyboard Idea also.

                      Let me know how it goes.

                      This is a follow-on to Megalog's suggestion.

                      Comment

                      • ironjohn04
                        New Member
                        • Mar 2010
                        • 1

                        #12
                        Normally I have a "Menu" form in my applications so if you have something similar, you could always have the "On Activate" event hide the toolbar ( DoCmd.ShowToolb ar "Ribbon", acToolbarNo)
                        and then set the "On Close" event to show it again (
                        DoCmd.ShowToolb ar "Ribbon", acToolbarYes)

                        If you hold down the shift key when clicking to open your access application, the toolbar will be there.

                        Comment

                        • MrDeej
                          New Member
                          • Apr 2007
                          • 157

                          #13
                          DoCmd.ShowToolb ar "Ribbon", acToolbarNo

                          Someone know why this dosent work for .accde files? Only .accdb files works for me

                          Edit: Forget it. Access fucked something up so nothing of the code worked in my .accde.
                          I dont know what Access does, but when i open Accdb and run VBA compile then one form opens in design mode, but without the 'x' in the corner to close it. It then cannot ble closed and you must close the database. This is only the symptom. Problem is solved when you rename the form, run debug, then rename back.
                          Strange!

                          Comment

                          • topher23
                            Recognized Expert New Member
                            • Oct 2008
                            • 234

                            #14
                            My databases all have tables that give users permissions for functions, forms, reports, etc. I'd set up some code to show the ribbon to anyone with developer level access and hide it for anyone without it.

                            Comment

                            • Faestrad
                              New Member
                              • Aug 2014
                              • 1

                              #15
                              Hey

                              Where should i write this code for the quick access toolbar?? Is it a vba code or custom UI?

                              Comment

                              Working...