Results 1 to 3 of 3
  1. #1
    BAX5127 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2011
    Posts
    3

    Hiding toolbar?

    I was able to find some code to hide the toolbar but I am unclear as to where the code should go.

    Here is some code I found:
    Dim i As Integer


    For i = 1 To CommandBars.Count
    CommandBars(i).Enabled = False
    Next i

    and

    DoCmd.ShowToolbar "Menu Bar", acToolbarNo

    I have tried putting in the second code but because it didn't work I am assuming that I didn't have it in the correct spot. Any help would be great thanks.

  2. #2
    timmy is offline Advanced Beginner
    Windows XP Access 2010 32bit
    Join Date
    Mar 2011
    Posts
    62
    If by toolbar you mean the ribbons, put this behind the first form that is loaded:

    Code:
     
    Private Sub Form_Load()
    DoCmd.ShowToolbar "Ribbon", acToolbarNo
    End Sub
    Edit: to show the ribbons again, hold shift when opening the DB.

  3. #3
    BAX5127 is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    Mar 2011
    Posts
    3

    Question

    Thanks timmy. It worked just like I needed it to.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Disable/Hide Quick Access Toolbar
    By Jackal in forum Security
    Replies: 10
    Last Post: 11-22-2012, 05:25 PM
  2. Toolbar available in Access Runtime
    By sabre1 in forum Access
    Replies: 0
    Last Post: 03-02-2011, 10:13 AM
  3. Replies: 1
    Last Post: 06-20-2010, 05:04 AM
  4. Access 2007 menu bar, toolbar...
    By truthseeker170 in forum Security
    Replies: 1
    Last Post: 07-15-2009, 01:45 PM
  5. Visual Basic ToolBar and ImageList
    By Athanasopolous in forum Programming
    Replies: 0
    Last Post: 01-17-2006, 03:45 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums