This documentation is archived and is not being maintained.

Attachment.Locked Property (Access)

The Locked property specifies whether you can edit data in a control in Form view. Read/write Boolean.

Version Added: Access 2007

expression .Locked

expression A variable that represents an Attachment object.

The default setting of the Locked property is True. This setting allows editing, adding, and deleting data.

Use the Locked property to protect data in a field by making it read-only. For example, you might want a control to only display information without allowing editing, or you might want to lock a control until a specific condition is met.