Hi all,
i have this problem when I do a transaction, see the code:
on error goto e
conection.begintrans
recordset1.updatebatch ' until here the Recordset's status is 1 (new)
recordset2.updatebatch
conection.committrans
exit sub
e:
conection.rollbacktrans ' when appears a error the status don't return its
original value '1' , it is equal '8' (unmodified).
That situation cause problems when i try to save again because now it
attempt update and dont insert.
help me please!!
Thanks !
Mariano
Val Mazur - 30 Jun 2003 12:30 GMT
Hi,
I would suggest to use explicit SQL statements inside transactions. It is
hard to control updates against database from the recordset. Basically you
do not have any control over it
--
Val Mazur
Microsoft MVP
> Hi all,
>
[quoted text clipped - 16 lines]
> Thanks !
> Mariano