Access: Keep Navigation pane closed


Well-known Member
Is there a way to keep the navigation pane closed or keep users from accessing it without proper permissions?


MrExcel MVP, Junior Admin
I often hide it using File -> Options -> Current Database -> Navigation and uncheck the "Display Navigation Pane" box, though that doesn't lock it down or prevent them from using F11 to see it, or opting to undo those steps to see it.

You can try Googling "access hide and lock navigation pane" and see what pops up. I checked out a few of those threads, but none looking very promising. Maybe you will have more luck if you dig a little deeper.


Well-known Member
So theres not VBA code that would hide it? I was thinking each time a form opened/closed I could tun code to hide it. My database is very form driven for users.


Well-known Member
Don't forget to disable special keys or a F11 will undo all your hard work.:)


Well-known Member
Access: Hide Navigation/Ribbon...

I was looking for a way to protect the database and limit what the user can and cannot do. One of the things I wanted to do is hide the navigation pane and ribbon... to do that I found this code that works great - EXCEPT I don't know how to go back to that I can make changes (ie get to form design mode) LOL

Private Sub Form_Load()
Text9.Value = CurrentUser

 'Hide the hidden objects in the navigation pane
    Application.SetOption "Show Hidden Objects", False
    'Lock navigation pane
    DoCmd.LockNavigationPane True
    'Disable right clicks and menus
    CurrentDb.Properties("AllowFullMenus") = False
    CurrentDb.Properties("AllowShortcutMenus") = False
    CurrentDb.Properties("AllowBuiltinToolbars") = False
    DoCmd.ShowToolbar "Ribbon", acToolbarNo
    Call DoCmd.NavigateTo("acNavigationCategoryObjectType")
    Call DoCmd.RunCommand(acCmdWindowHide)

End Sub
I tried this, but I still cannot get to a forms design mode

Private Sub Command43_Click()
'Admin Button  Bring back nav and other views that are hidden
       Call DoCmd.SelectObject(acTable, , True)
        'UnHide the hidden objects in the navigation pane
    Application.SetOption "Show Hidden Objects", True
    'Unlock navigation pane
    DoCmd.LockNavigationPane False
    'Enable right clicks and menus
    CurrentDb.Properties("AllowFullMenus") = True
    CurrentDb.Properties("AllowShortcutMenus") = True
    CurrentDb.Properties("AllowBuiltinToolbars") = True
    DoCmd.ShowToolbar "Ribbon", acToolbarYes
    DoCmd.SelectObject acTable, , True
End Sub
Last edited:


Well-known Member
Re: Access: Hide Navigation/Ribbon...

I swear I posted this earlier.:confused:
Try F11 and also holdig the shift key down when opening the DB


MrExcel MVP, Junior Admin
Re: Access: Hide Navigation/Ribbon...

I merged your two threads together, since they both deal with the same question.
All clarifications, follow-ups, and bumps should be posted back to the original thread. Per forum rules, posts of a duplicate nature will typically be locked or deleted (as per rule 12 here: Forum Rules).

Some videos you may like

This Week's Hot Topics

  • Importing multiple excel files into one spreadsheet
    Hi, I'm trying to import multiple excel files (with the same format into a single spreadsheet) so that each day's file is listed underneath the...
  • find many based on a certain criteria
    good evening, I hope someone can help me? I have a workbook sheet 2 contains lots of data.... I would like to be able to find anything on sheet...
  • How to copy multiple rows using If
    Hi all, I'm very new to VBA and have written this simple code to copy certain cells if a certain cell within that row contains any data. I need...
  • VBA If statement
    Dear All, I have two dates, where I'd like a message box to pop, if the dates are between this criteria. [CODE] sDate1 = #10/1/2019#...
  • Text Format
    I have a sheet for user to keyin the data. The format of the data can be 451 / 1903, 0012 / 9908 or 00287 / 0099. The number after the "/" is...
  • Macro to copy values across rows and transposing them and add the user id
    [FONT=Times New Roman][SIZE=3][COLOR=#000000][/COLOR][/SIZE][/FONT][FONT=Calibri][SIZE=3][COLOR=#000000]Hi,[/COLOR][/SIZE][/FONT] [FONT=Times New...