Total a Calculated field? (1 Viewer)

Sneale

New member
Local time
Today, 04:12
Joined
Aug 26, 2019
Messages
26
Hello,

I am trying to get a total amount in the footer of my report. I have a calculated field called txtGCTotal that has the following expression: =IIf([NotEligible]=False,50,0)+(Nz([SumOfPointAmt])*2). I have tried adding a text box in the footer with the expression =Sum([txtGCTotal]) but it returns an error. Am I missing something?
 

June7

AWF VIP
Local time
Today, 00:12
Joined
Mar 9, 2014
Messages
5,470
This is not a field, it is a textbox. Aggregate functions must reference fields, not controls. You will have to repeat the expression in the Sum() function.
=Sum(IIf([NotEligible]=False,50,0)+(Nz([SumOfPointAmt])*2))

Or do this calculation in query and reference that calculated field in the Sum().
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 16:12
Joined
May 7, 2009
Messages
19,241
you can also Reduce the expression:

IIf([NotEligible]=False,50,0)

To

50+[NotEligible]*50
 

Users who are viewing this thread

Top Bottom