Access: Keep Navigation pane closed

gheyman

Well-known Member
Joined
Nov 14, 2005
Messages
2,347
Office Version
  1. 365
Platform
  1. Windows
Is there a way to keep the navigation pane closed or keep users from accessing it without proper permissions?
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
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.
 
Upvote 0
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.
 
Upvote 0
Call DoCmd.NavigateTo("acNavigationCategoryObjectType")
Call DoCmd.RunCommand(acCmdWindowHide)
 
Upvote 0
Don't forget to disable special keys or a F11 will undo all your hard work.:)
 
Upvote 0
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:
Upvote 0
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
 
Upvote 0
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).
 
Upvote 0
Re: Access: Hide Navigation/Ribbon...

Thanks Joe
 
Upvote 0

Forum statistics

Threads
1,223,404
Messages
6,171,922
Members
452,433
Latest member
Woodchuck76

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top