Access: Keep Navigation pane closed

gheyman

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

Joe4

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.
 

gheyman

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.
 

welshgasman

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

gheyman

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

Code:
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

Code:
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
HELP!!
 
Last edited:

welshgasman

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
 

Joe4

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

Top