RollbackTrans Method

Cancels a transaction.

Applies to objects: Connection, Database, Workspace.

Syntax

[[Let] RetVal = ] object.RollbackTrans()

The RollbackTrans method syntax has these parts:

Part Description
object Required. An instance of an object.
RetVal Optional. Переменная типа Boolean, показывающая, смогли ли мы отменить транзакцию.

Remarks

All operations between BeginTrans and RollbackTrans will be cancelled.

After calling the RollbackTrans method the automatic transaction execution mode is restored. To form the next transaction, call BeginTrans again.

Depending on the driver and the database, the CommitTrans and RollbackTrans method may closes open pointers of Recordset objects.

Example

.......

 

See Also

Connection Object, Database Object, Workspace Object, BeginTrans Method, CommitTrans Method.