You can lock objects so that other developers cannot save changes to the objects. You can either lock objects manually, or you can set an option so that all objects that you open for design are locked.

To manually lock an object

  1. In the Classic client, on the Tools menu, click Object Designer.

  2. In Object Designer, select one or more objects that are not already locked, and then do one of the following steps:

    • Right-click the object or objects, and then click Lock.

    • On the File menu, click Lock.

    • Press CTRL+ALT+L.

To automatically lock all objects that you open for design

  1. In the Classic client, on the Tools menu, click Options.

  2. In the Options window, in the Auto-Lock on Design field, enter Yes, and then click OK.

    Tip
    You cannot automatically unlock objects that you have locked. However, you can filter for locked objects, select all objects that you have locked, and then unlock these objects. For more information, see How to: Unlock an Object.
    Note
    If you go to the definition of an object, then the object is opened in design mode. Therefore, if you set the Auto-Lock on Design field and then go to the definition of an object, then the object is locked. For more information, see Viewing the Definition of a Function or Object by Using Go To Definition.

See Also