DoCmd.LockNavigationPane (Access)

You can use the LockNavigationPane method to prevent users from deleting database objects that are displayed in the navigation pane.

Locking the navigation pane prevents the user from deleting database objects or cutting database objects to the clipboard. It does not prevent the user from performing any of the following operations:

LockNavigationPane (Lock)

Lock: Set to True to lock the navigation pane.


DoCmd.LockNavigationPane Lock:=True