Rollback()


" "

short Rollback()

Description

This function cancels any changes made in the current unit of work, ends the current unit of work, closes any open cursors, and invalidates all outstanding query IDs.

Note:
The name of this function conflicts with the Microsoft Access 2.0 keyword Execute. If you are using MS Access 2.0, place square brackets [] around the function name.
Note:
The rollback affects SQL changes that were run by calling Open() or Execute(). Rollback does not affect changes made by other QMF for Windows API functions, such as FastSaveData(), SaveData(), or DeleteQMFObject().

Return Value

Return value will be zero if successful or non-zero if unsucessful. If the return value is non-zero, you can call GetLastErrorString(), GetLastErrorType(), GetLastSQLCode(), GetLastSQLError(), or GetLastSQLState() to get additional error information.

Related Tasks

Commit()