DoCmd.LockNavigationPane Method

Access Developer Reference

You can use the LockNavigationPane action to prevent users from deleting database objects that are displayed in the Navigation Pane.

Version Information
 Version Added:  Access 2007

Syntax

expression.LockNavigationPane(Lock)

expression   A variable that represents a DoCmd object.

Parameters

Name Required/Optional Data Type Description
Lock Required Variant Set to True to lock the Navigation Pane.

Remarks

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:

  • Copying database objects to the clipboard
  • Pasting database objects from the clipboard
  • Displaying or hiding the Navigation Pane
  • Selecting different Navigation Pane organization schemes
  • Showing or hiding sections of the Navigation Pane