How to multiplicate?

  • Thread starter Thread starter Marcelo Henderson via AccessMonster.com
  • Start date Start date
M

Marcelo Henderson via AccessMonster.com

Hello,

I have a table "A":
A_ID
A_Date
A_Qty
A_Factor

If i wanna count "A", I use Count(A...
If I wanna Addition, I use Sum(A

How can I make multiplication of "A_Factor" in a query?
ex:
first A_Factor * second A_factor * third A_Factor ...

Regards,

Henderson
 
How can I make multiplication of "A_Factor" in a query?
You Sum and Count down a field. You multiply across.
Total Cost: [first A_Factor] * [second A_factor] * [third A_Factor]
 
If the numbers are all strictly positive:


EXP( SUM ( LOG ( columnName_or_expression ) ) )



Hoping it may help,
Vanderghast, Access MVP
 
You tried it? I doubt you did.


a*b*c == exp( log(a) + log(b) + log(c) )
== exp( sum ( log ( fieldName ) ) )




Vanderghast, Access MVP
 
Back
Top