After 25 years, just noticed something: DSum will multiply fields

cyberman55

Registered User.
Local time
Today, 13:24
Joined
Sep 22, 2012
Messages
83
Posting this just in case others haven't noticed this. On a lark, I tried it and it worked!

Me.txtConsumeCost = DSum("[cost]*[AmountUsed]", "qryfrmProposalWiz05Sub0400Parent")
 
Hi. That's what's cool about domain aggregate functions. It won't apply aggregation until all expressions are evaluated. So...
Code:
DLookup("[FirstName] & ' ' & [LastName]",...)
DSum("[BegginingBalance]+[EndingBalance]",...)
etc.
Cheers!
 
Thanks, I was hoping someone would post more examples. Funny, I never noticed this before.
 
It's actually very handy.
 
Well I never knew that.

Never too old - learn something everyday - etc etc!
 

Users who are viewing this thread

Back
Top Bottom