aggregate query multiply instead of sum

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I need to creat a totals query that multiplys instead of sums. Can anyone
explain how to do this?
 
I found the answer to my own question.

IIf(Sum(IIf([Your Field]<0,1,0)) Mod
2=1,-1,1)*Sgn(Min(Abs([YourField])))*Exp(Sum(Log(Abs(IIf([YourField]=0,1,[YourField]))))
 
Gena

Another way to do this would be to create a query against the field --
something like:

SELECT Exp(Sum(Log([NumericField]))) AS Expr1
FROM Table1;

Good luck

Jeff Boyce
<Access MVP>
 
Back
Top