J
Jean-Marc
Sorry for posting again the same problem but I had no answer on my
first try last week.
I am Using Access 2003 on a straight .mdb database.
I made the following code in VBA code of a Form callback function just
to prove transactions are working fine:
CurrentProject.Connection.BeginTrans
Dim rsTAnnee As New ADODB.Recordset
rsTAnnee.Open "SELECT * FROM Annee", CurrentProject.Connection,
adOpenDynamic, adLockOptimistic
rsTAnnee.AddNew
rsTAnnee!annee = 1999
rsTAnnee.Update
CurrentProject.Connection.RollbackTrans
when execution reaches 'RollbackTrans', the system always throw the
error: 'You tried to commit or rollback a transaction without first
beginning a transaction'.
Documentation say that if the 'Transaction DDL' entry exists in the
properties of the connection then the underlying database supports
transactions. I checked and it is there ... actually, its value is 16
which I can't figure the meaning of.
Is there something to be done in order to have transactions enabled?
Is there something wrong in the code?
Thank you for helping.
Jean-Marc.
first try last week.
I am Using Access 2003 on a straight .mdb database.
I made the following code in VBA code of a Form callback function just
to prove transactions are working fine:
CurrentProject.Connection.BeginTrans
Dim rsTAnnee As New ADODB.Recordset
rsTAnnee.Open "SELECT * FROM Annee", CurrentProject.Connection,
adOpenDynamic, adLockOptimistic
rsTAnnee.AddNew
rsTAnnee!annee = 1999
rsTAnnee.Update
CurrentProject.Connection.RollbackTrans
when execution reaches 'RollbackTrans', the system always throw the
error: 'You tried to commit or rollback a transaction without first
beginning a transaction'.
Documentation say that if the 'Transaction DDL' entry exists in the
properties of the connection then the underlying database supports
transactions. I checked and it is there ... actually, its value is 16
which I can't figure the meaning of.
Is there something to be done in order to have transactions enabled?
Is there something wrong in the code?
Thank you for helping.
Jean-Marc.