Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / Database Access / June 2003



Tip: Looking for answers? Try searching our database.

Status after RollBackTrans

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mariano - 30 Jun 2003 06:05 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.