dlookup, dcount and Slect SQL

S

Souris

In my appilcation I need use Dlookup or Dcount to get information from
database. I would like to know from performance of view, are Dlookup, DCount
or use SQL statement are better choice for the applications?


Your information is great appreciated,
 
E

Ed Metcalfe

Souris said:
In my appilcation I need use Dlookup or Dcount to get information from
database. I would like to know from performance of view, are Dlookup,
DCount
or use SQL statement are better choice for the applications?


Your information is great appreciated,

DLookup and DCount (and all the other domain aggregate functions) are okay
on tables with very few records), but as a general rule they are *much*
slower than a SQL SELECT.

Ed Metcalfe.
 
S

Souris

Ed Metcalfe said:
DLookup and DCount (and all the other domain aggregate functions) are okay
on tables with very few records), but as a general rule they are *much*
slower than a SQL SELECT.

Ed Metcalfe.
 
S

Souris

Thanks millions

Ed Metcalfe said:
DLookup and DCount (and all the other domain aggregate functions) are okay
on tables with very few records), but as a general rule they are *much*
slower than a SQL SELECT.

Ed Metcalfe.
 
S

Souris

Thaks for the information,

So I need assign to a recordset from SQL statement and use recordset.fields
to retrieve infromation from SQL statement.

Am I right?
Please let me know if I am wrong,

Thanks again,
 
R

Rick Brandt

Ed said:
DLookup and DCount (and all the other domain aggregate functions) are
okay on tables with very few records), but as a general rule they are
*much* slower than a SQL SELECT.

This is an often repeated myth.

Domain aggregates are ill-advised in queries and in looping operations.
That is because there is a certain amount of overhead that is incurred per
use of a domain aggregate function and in a query or looping operation that
overhead piles up and becomes noticeable.

As long as you are not in a query or looping operation then they are just as
fast as using a Recordset.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

dlookup 2
Month and Year Validation 2
Use of DSum, DCount, DLookup, etc in form after splitting 3
Which method shall I use? 4
SQL and DLookup 9
dlookup 2
Type Mismatch in dLookup 9
Elookup Error 3131 4

Top