RollbackTrans methos still set Underlying Values
- From: Dead.Zone <Dead.Zone@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 12 Aug 2005 08:11:07 -0700
Hello,
When I rollback my transaction using ADO's Connection.RollbackTrans()
method, the data is not saved to the databse (which is good) but the
recordset has the current values in the Underlying Value property, instead of
"Empty". (These are all inserts. I roll back the transaction if one of the
attempted inserts already exists in the database.)
Now that the underlying value fields are populated, I can't attempt to save
the recordset after the user fixes teh offending rows. All unmodified rows
are not sent to the SQL server. And modified rows give me an error that the
data may have been changed since it was last read. This seems to indicate
that ADO is attempting to issue an Update statement, rather than an Insert
statement.
Any help would be appreciated.
Thanks,
Scott
p.s. I am using ADO 2.8 to connect to an SQL server databse.
.
- Follow-Ups:
- Re: RollbackTrans methos still set Underlying Values
- From: Frank Hickman [MVP]
- Re: RollbackTrans methos still set Underlying Values
- Prev by Date: running a make table query in an access database from VB
- Next by Date: Re: Hiding DataGrid Rows
- Previous by thread: running a make table query in an access database from VB
- Next by thread: Re: RollbackTrans methos still set Underlying Values
- Index(es):
Relevant Pages
|
|