CdbWorkspace::BeginTrans Method

Begins a new transaction.

Syntax

VOIDBeginTrans(VOID);

Usage

#include <afxole.h>
#include <dbdao.h>

CdbWorkspace      ws;
BOOL            error;
...
ws.BeginTrans();      // Start working.
...                     // Make some changes.
if (error)
   ws.Rollback();      // Reject changes
else
   ws.CommitTrans(); // Accept changes.
ws.Close();            // Close the workspace