Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Why Access can't recognize Sum([value]) on report footer ?

Status
Not open for further replies.

awinnn

MIS
Jul 21, 2003
166
0
0
MY
Hi,
I have RefNo, StaffName and Amount. I've created RefNo header and footer on the report. RefNo will be on the RefNo Header, while StaffName and Amount on the Detail and differentiation of Amount on the RefNo Footer.
My problem is to get total of the differentiation on the Report Footer.

This is the differentiation, txtDiff,
=IIf(Count([Amount])>1,Max([Amount])-Min([Amount]),[Amount])

If i put on the Header Footer like this,
=Sum([txtDiff])

it doesn't work..it doesn't recognize the txtDiff.
any idea? thanx in advance..;)
 
Access won't let you sum calculated controls, you have to recalculate them in the footer. Try:
Code:
=Sum(IIf(Count([Amount])>1,Max([Amount])-Min([Amount]),[Amount]))


Hoc nomen meum verum non est.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top