Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread RecordCount vs. Query
Sat, Nov 15 2008 5:37 AMPermanent Link

"Hershcu S"
Hello

What should be faster for getting the total record number?

The RecordCount  function or runing a Query (select count ...)

Thanks Sorin

Sat, Nov 15 2008 7:58 AMPermanent Link

Roy Lambert

NLH Associates

Team Elevate Team Elevate

Hershcu


It will depend on just what you have to do to get there eg is the table already linked to a component and open, does the query have to be created etc.

Given an already open table my bet would go to RecordCount but unless you're doing it thousands of times in a loop I doubt you'd every detect the difference.

Final point - why not just try it and see?

Roy Lambert [Team Elevate]
Sat, Nov 15 2008 4:13 PMPermanent Link

Tim Young [Elevate Software]

Elevate Software, Inc.

Avatar

Email timyoung@elevatesoft.com

Hershcu,

<< What should be faster for getting the total record number?

The RecordCount  function or runing a Query (select count ...) >>

Both are equivalent as long as your query takes the form of:

SELECT COUNT(*) FROM MyTable
[WHERE ... (optional)]

--
Tim Young
Elevate Software
www.elevatesoft.com

Image