The best way is to issue a query with a
count function ie
SELECT COUNT(*) FROM TABLE WHERE
<PUT YOUR WHERE CLAUSE HERE>
RETRIEVE THE RESULTING NUMBER FROM
THE FIELD NAMED COUNT.
ALTERNATIVE
SELECT COUNT(*) AS MYCOUNT FROM TABLE
WHERE ....
THEN REFERENCE THE FIELD MYCOUNT.
If you base you where clause on indexed
columns you should get excellent performance.
I haven't tried this yet, but see if you can
set a plan with your sql statement to gaurantee performance.
Joe Carney
Palm Beach Gardens, FL