Access 2003 Report - Sum "Gain"

matthewR
5StarLounger
Posts: 627
Joined: 03 Feb 2010, 15:02

Access 2003 Report - Sum "Gain"

Post by matthewR »

I have an Access report where I have columns where I would like to count the Text "Gain" at the bottom of the report for each of these columns. What would the calculation in the "Report Section" at the bottom of these columns be?

User avatar
HansV
Administrator
Posts: 78549
Joined: 16 Jan 2010, 00:14
Status: Microsoft MVP
Location: Wageningen, The Netherlands

Re: Access 2003 Report - Sum "Gain"

Post by HansV »

For a field named Result, create a text box in the report footer with control source

=Abs(Sum([Result]="Gain"))
Best wishes,
Hans

matthewR
5StarLounger
Posts: 627
Joined: 03 Feb 2010, 15:02

Re: Access 2003 Report - Sum "Gain"

Post by matthewR »

Thanks Hans - that worked.