Multi-user update conflict

  • Thread starter Developer Seeking for Help
  • Start date
D

Developer Seeking for Help

Hi, I have a client application running on two computers.
If I use one computer to execute an update to a record and
then use the other computer to execute another update to
the same record, I would get the following error message:

"Row cannot be located for updating. Some values may have
been changed since it was last read."

My recordset has the following properties:
Set rs = New ADODB.Recordset
rs.CursorLocation = adUseClient
rs.CursorType = adOpenDynamic
rs.LockType = adLockPessimistic

I have tried rs.requery and close then open rs but they
did not work. Doing these would give me this error
message: "Operation is not allowed in this context."

This is a synchronization issue but I don't know how to
resolve it using VBA.

Does anyone know how this problem can be resolved? Some
sample codes would be appreciated. Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top