Ends the current transaction and restores the databases in the Workspace object to the state they were in when the current transaction began.
Syntax
VOIDRollback(VOID);
Usage
#include <afxole.h>
#include <dbdao.h>
CdbWorkspace ws;
BOOL error;
... // Create a workspace, etc.
ws.BeginTrans(); // Start working.
... // Make some changes.
if (error)
ws.Rollback(); // Reject changes
else
ws.CommitTrans(); // Accept changes.
ws.Close(); // Close the workspace