DSum Wrong Argument

  • Thread starter Thread starter DS
  • Start date Start date
D

DS

I'm trying to use this DSum function but I keep getting the wrong number
of arguments. Any help appreciated.
Thanks
DS


Me.TxtTax = DSum(IIf(CDDiscountDP = 1, "((CDQuantity *
CDFinalPrice)+CDiscountAmount)*CDTaxRate",
((CDQuantity * CDFinalPrice) * CDDiscountPercent) * CDTaxRate,
"tblCheckDetails"))
 
Try this instead:
DSum(IIf(CDDiscountDP = 1, "((CDQuantity * CDFinalPrice)
+CDiscountAmount)*CDTaxRate",
"((CDQuantity * CDFinalPrice) * CDDiscountPercent) * CDTaxRate"
),"tblCheckDetails")

Cindy
 
Cindy said:
Try this instead:
DSum(IIf(CDDiscountDP = 1, "((CDQuantity * CDFinalPrice)
+CDiscountAmount)*CDTaxRate",
"((CDQuantity * CDFinalPrice) * CDDiscountPercent) * CDTaxRate"
),"tblCheckDetails")
Cindy
Thanks Cindy
That did the trick!
DS
 
Back
Top