G
Guest
Hi all,
I have a problem with ADO. I am updating a ADO recordset in a multi-user
environment but somehow it seems that the code I am using is ignoring locks
by other users.
This is the code I am using
dim cnx as ADODB.connection
dim myRs as ADODB.recordset
set cnx = currentproject.connection
set myrs = new adodb.recordset
cnx.BeginTrans
With rs
.Fields("FIELD1") = "VALUE1"
.Update
End With
If cnx.Errors.Count <> 0 Or Err.Number <> 0 Then
cnx.RollbackTrans
Else
cnx.CommitTrans
End If
Somehow this code seem to update the table, although someone else is already
updating the table (and locking the record via another instance). I can not
figure out why!!!! Can anybody please help?
TIA
I have a problem with ADO. I am updating a ADO recordset in a multi-user
environment but somehow it seems that the code I am using is ignoring locks
by other users.
This is the code I am using
dim cnx as ADODB.connection
dim myRs as ADODB.recordset
set cnx = currentproject.connection
set myrs = new adodb.recordset
cnx.BeginTrans
With rs
.Fields("FIELD1") = "VALUE1"
.Update
End With
If cnx.Errors.Count <> 0 Or Err.Number <> 0 Then
cnx.RollbackTrans
Else
cnx.CommitTrans
End If
Somehow this code seem to update the table, although someone else is already
updating the table (and locking the record via another instance). I can not
figure out why!!!! Can anybody please help?
TIA