RecordsAffected Property

    Example    Applies To

Returns the number of records affected by the most recently invoked Execute method.

Syntax

LONGGetRecordsAffected(VOID);

Remarks

When you use the Execute method to run an action query from a CdbQueryDef object, the RecordsAffected property will contain the number of records deleted, updated, or inserted.

When you use RecordsAffected in an ODBCDirect workspace, it will not return a useful value from an SQL DROP TABLE action query.