Stevie
Nov 16th, 2000, 08:48 AM
Sorry but this is going to be a long one.
(Unbound controls)
In DAO to update a recordset you would Edit, alter the fields then Update.
In ADO to update a recordset you would alter the fields then Update.
Hence DAO knows when you are in Edit mode before you try to update, whereas it would seem that ADO does not.
(Bound controls)
When ever a controls contents are altered it would be in Edit mode. (ADO & DAO) Update would occur when a save button is pressed for instance.
As far as I can tell (in short laymans terms) pessimistic locking occurs when trying to edit a record, and optimistic locking occurs when trying to update a record.
Now I need to know if this is correct, surely when using unbound controls with ADO, pessimistic and optimistic locking would appear to work in exactly the same way to the user, as it would not know when it is in edit mode, and the update could be instantaneous.
If this is so is there any way for me to lock records when a user tries to edit a field, apart from me implementing my own locks based on timestamps or something?
Any help/ideas/input welcome :)
(Unbound controls)
In DAO to update a recordset you would Edit, alter the fields then Update.
In ADO to update a recordset you would alter the fields then Update.
Hence DAO knows when you are in Edit mode before you try to update, whereas it would seem that ADO does not.
(Bound controls)
When ever a controls contents are altered it would be in Edit mode. (ADO & DAO) Update would occur when a save button is pressed for instance.
As far as I can tell (in short laymans terms) pessimistic locking occurs when trying to edit a record, and optimistic locking occurs when trying to update a record.
Now I need to know if this is correct, surely when using unbound controls with ADO, pessimistic and optimistic locking would appear to work in exactly the same way to the user, as it would not know when it is in edit mode, and the update could be instantaneous.
If this is so is there any way for me to lock records when a user tries to edit a field, apart from me implementing my own locks based on timestamps or something?
Any help/ideas/input welcome :)