Hi,
I have procedure like below
On Error GoTo ErrHandler
adoConnection.BeginTrans
few SQL Code
adoConnection.CommitTrans
exit sub
ErrHandler:
adoConnection..RollbackTrans
msgbox err.Number & “-“ & Err.Description
err.Clear
When I first time try and if any error occurred in sql code then shows error number , error description
And Rollback occurred.
Thereafter I second time try then the error in begin transaction was
Err.Number -2147168237
Err.Description Cannot start more transactions on this session
why the previous transaction was not clear?
thanks in advance
maii
I have procedure like below
On Error GoTo ErrHandler
adoConnection.BeginTrans
few SQL Code
adoConnection.CommitTrans
exit sub
ErrHandler:
adoConnection..RollbackTrans
msgbox err.Number & “-“ & Err.Description
err.Clear
When I first time try and if any error occurred in sql code then shows error number , error description
And Rollback occurred.
Thereafter I second time try then the error in begin transaction was
Err.Number -2147168237
Err.Description Cannot start more transactions on this session
why the previous transaction was not clear?
thanks in advance
maii