Recordset always returns -1 (excel VBA)

Viewed 14946

I want to count the number of rows returned by a query in a recordset, I tried recset.RecordCount function but it always return a value of -1.

How am I going to count the number of records or rows in recordset?

4 Answers
Related