Hi, Bruce.
Could you explain a bit just what is meant by optimistic and pessimistic
locking
Optimistic locking means that the record isn't locked until it's actually
updated, whereas pessimistic locking means that the record is locked as soon
as an edit starts, and remains locked up until the record is eventually
updated (or the edit is cancelled). Optimistic locking provides for very
brief record locks, while pessimistic locking could take quite a while,
especially when a user leaves on a lunch break in the middle of editing a
record. ;-)
How would one set these options? I expect it is in Tools > Options >
Advanced
Yes. It can also be set on individual forms on the Properties sheet, or in
VBA with DAO or ADO Recordsets.
which option is which type of record locking?
Excellent question! In the "Default Record Locking" section of the dialog
window:
"No locks" means optimistic record locking (no locks until the record is
finally updated);
"All records" means a full table lock (no other record in the table can be
edited);
"Edited record" means pessimistic record locking (locked at the very
beginning of the record edit);
In what circumstances would one be preferable to another?
Optimistic record locking is for a fast, heavy load of transactions, where
the user can rekey the discarded edits if the update is blocked due to
another user modifying the record before the current user finished editing.
Pessimistic record locking is generally for a lighter load of transactions,
in cases where it would be highly inconvenient (or impossible) for the user
to rekey the data if the record edit was blocked.
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blogs:
www.DataDevilDog.BlogSpot.com,
www.DatabaseTips.BlogSpot.com
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact
info.