Navigation:  DAO Object Classes > DaoRecordset Class >

DaoRecordset:LockEdits Access/Assign

Previous pageReturn to chapter overviewNext page

Purpose

A logical value that specifies optimistic or pessimistic locking during edits

 

The meaning of the logical value is:

TRUE(Default) Pessimistic locking is in effect. The 2K page containing the record you're editing is locked as soon as you use the Edit method.
FALSE Optimistic locking is in effect for editing. The 2K page containing the record is not locked until the Update  method is executed

 

NoteYou can preset the value of LockEdits when you first open the Recordset by setting the lLockEdits argument when you open the Recordset Setting the lLockEdits argument to dbPessimistic will set the LockEdits property to True, and setting lLockEdits to any other value will set the LockEdits property to False

 

Class

DaoRecordset