R
Rick Brandt
AccessKay said:I’m fairly new to Access so this may be an inane question to all those
experienced people out there. My question is about the use of aggregates
in
a query. I’m noticing that designing queries with aggregates might lead
to
problems. Is it best to not build queries with aggregates if you can
avoid it?
Thanks for any feedback.
If you mean the "domain aggregate functions" e.g. DLookup(), DSum(),
DCount(), etc., then yes they should be avoided whenever possible in
queries.
The reason is that these functions all have a bit of resource overhead that
is consumed for each call. That means calling them in queries or code
looping operations results in paying that overhead over and over and over.
The normal aggregate functions like Sum(), Count(), Min(), etc., are
perfectly fine in queries. Databases would be pretty useless without them.