I seem to getting an error when referencing a field within a recordset after performing a CommitTrans. Following ASP code snippet illustrates this:
Code:
With RS
DB.BeginTrans
'Do some database operations here
If Not ErrorStatus Then
DB.RollbackTrans
Exit Function
End If
'Do some more db operations here
DB.CommitTrans
' Update field.
.Fields("myField") = 1 ' <- Error here
End With
I'm wondering if there are any guidelines on accessing/updating a recordset after a CommitTrans? Also, this same code works in ACCESS VBA module.