Quote:
Originally Posted by mmcdonal
... I think there is a problem with locking, especially with Jet. If you link SQL...
Did that help?
|
Hi Sorry for the long delay in replying... been pulled on and off the project
I have tried you suggestions but still have the problem.
According to the online help...
adLockPessimistic
Data cannot be changed by other users while locked
also Prevents other users from accessing data while locked
adLockOptimistic
Other users able to access data.
also
Data can be changed by multiple users at once
I tried both lock settings and niether managed to lock the record against update by another user.
If you open the table in access and try to update the record on the second PC the record is locked, but this is not recognized by the ADO routines.
I also tried using ADO perssimistic locks on both PCs and could quite happily trample over the other users updates.
The result is that which ever record is written last is saved in the database.
I haven't tried using DAO.
As there are relatively few screens/forms I need to protect I will create a lock table, just to lock the primary record key e.g. Order No, GRN No, etc., in the database and control the locking myself.
Thanks for your help I will let you know if I find a way to use ADO reliably.
Stuart