I've found three approaches to obtaining a count of the rows that satisfy my Microsoft 2003 jetSQL.
One is to use the COUNT(*) in a standalone SQL statement using the same FROM, JOIN and WHERE criteria as the separate SQL statement that actually gets the data.
Another suggests changing the SQL open from "forward only" as to allow the .MoveLast imperative to work, followed by the .RecordCount.
A third suggests loading the dynaset into an array and using the UBOUND.
The only reason I'm using "Count" at all is to instantiate and maintain a progress bar.
What do you recommend. And what are the tradeoffs?
Regards,
Grandpa Brian
One is to use the COUNT(*) in a standalone SQL statement using the same FROM, JOIN and WHERE criteria as the separate SQL statement that actually gets the data.
Another suggests changing the SQL open from "forward only" as to allow the .MoveLast imperative to work, followed by the .RecordCount.
A third suggests loading the dynaset into an array and using the UBOUND.
The only reason I'm using "Count" at all is to instantiate and maintain a progress bar.
What do you recommend. And what are the tradeoffs?
Regards,
Grandpa Brian