G
Guest
Hello,
I am trying to update text fields in a DAO recordset.
Microsoft returns the error
"Run-time error 3197
The Microsoft Jet database engine stopped the process because you and
another user are attempting to change the same data at the same time."
The recordset contains order header records and order line records (one
header record to many line records).
The line record fields update perfectly. The header records
are causing the error.
The Code:
Dim newdate As String
Dim rs1 As DAO.Recordset
With Me.FrmDetail.Form
Set rs1 = Me.FrmDetail.Form.RecordsetClone
End With
With rs1
Do While Not rs1.EOF
.Edit
![PROMISE_DATE] = newdate
![REQUEST_DATE] = newdate
![REQ_SHIP_DATE] = newdate
![SHIPPING_DATE] = newdate
.Update
.MoveNext
Loop
End With
rs1.Close
Set rs1 = Nothing
Thanks for your help!
I am trying to update text fields in a DAO recordset.
Microsoft returns the error
"Run-time error 3197
The Microsoft Jet database engine stopped the process because you and
another user are attempting to change the same data at the same time."
The recordset contains order header records and order line records (one
header record to many line records).
The line record fields update perfectly. The header records
are causing the error.
The Code:
Dim newdate As String
Dim rs1 As DAO.Recordset
With Me.FrmDetail.Form
Set rs1 = Me.FrmDetail.Form.RecordsetClone
End With
With rs1
Do While Not rs1.EOF
.Edit
![PROMISE_DATE] = newdate
![REQUEST_DATE] = newdate
![REQ_SHIP_DATE] = newdate
![SHIPPING_DATE] = newdate
.Update
.MoveNext
Loop
End With
rs1.Close
Set rs1 = Nothing
Thanks for your help!