Recordset.RecordCount property (ADO)The RecordCount property will return -1 for a forward-only cursor; the actual count for a static or keyset cursor; and either -1 or the actual count for a dynamic cursor, depending on the data source.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)