cyberbiker
Programmer
I am attempting to improve my skills and find that I am often missing a basic concept.I know some things work and
use those techniques as I was taught but as I can more
skill, I begin to question the logic.
This question is very basic. I know that if I am updating 2 recordsets and I want either both to succeed or roll back then I would do something like the first code
on error goto fail
DB.BeginTrans
RS1.Update
RS2.update
DB.CommitTrans
exit sub
fail:
DB.RollbackTrans
MsgBox Err.Description, vbExclamation
However
Is there any valid reason for doing the following?
(Where I am updating only a single recordset).
on error goto fail
DB.BeginTrans
RS1.Update
DB.CommitTrans
exit sub
fail:
DB.RollbackTrans
MsgBox Err.Description, vbExclamation
VB 6 and ADO connection
DB is connection object
Thanks for the clearification
Terry (cyberbiker)