In this article,
It shows a comparative table how .RecordCount is way faster than any other method use in that article but it did not mention if it can be use with criteria.
That is my question now. Can .recordcount be use with criteria? For example I only want the recordcount to return numbers of record in my invoices table where status is equals to "PAID". If it is possible, How?
Currently I am using for loops on a recordset to do it but seeing that article can possibly increase performance if recordcount can be use with criteria
Thanks in advance
As your table is linked, use any method, but DCount is extremely simple:
The method in the link you provided is for TableDefs only and is very fast:
You can modify this to use a recordset:
but then it will run no faster than DCount.