I'm trying to get the right running total in an Access Report. The report runs off a select query which includes City, Date, Account_Entry.
In my report I have Sorting and Grouping this way:
City
Group Header Yes
Group Footer Yes
Group On Each value
Date
Group Header Yes
Group Footer Yes
Group On Year
Date
Group Header Yes
Group Footer Yes
Group On Month
The grouping by City is working fine.
I also get my Date grouped by Year and then by Month.
I'm having trouble getting a running total by city only that carries across each year.
I'm using Account_Entry twice because I want a "change" column, and I want a "running total" column.
In the Date Header (by month) area I have:
{=Format$([Date],"mm/yyyy"
},{sum([Account_Entry])},{sum([Account_Entry]}
I'm using {} to show the text boxes here.
For the first Account_Entry sum I have selected: Running Sum... Over Group
For the second Account_Entry sum I have selected: Running Sum... No
In the Date Footer (by year) are I have:
{"Year Total"},{sum([Account_Entry])},{sum([Account_Entry]}
For the first Account_Entry sum I have selected: Running Sum... Over Group
For the second Account_Entry sum I have selected: Running Sum... No
Right now I have dates in the years 2000-2001 and my output for one City looks like this:
CITY 1
Month Running Total Change
2000
11/2000 $6,000 $6,000
12/2000 $151,000 $145,100
Year Total $151,000 $151,100
2001 01/2001 $12,400 $12,400
02/2001 $216,900 $204,500
03/2001 $531,600 $314,700
Year Total $682,700 $531,600
The year total for each City comes out right as a running total of both years (and the Change column is right, too)!
But as you can see, the monthly running total starts over when the the year 2001 starts.
I've tried using Running Sum... Over All, but that makes the Running Total continue on to each city and I don't want that.
If you've made it through all this I thank you! And if you have any thoughts, I thank you in advance!
Ken
In my report I have Sorting and Grouping this way:
City
Group Header Yes
Group Footer Yes
Group On Each value
Date
Group Header Yes
Group Footer Yes
Group On Year
Date
Group Header Yes
Group Footer Yes
Group On Month
The grouping by City is working fine.
I also get my Date grouped by Year and then by Month.
I'm having trouble getting a running total by city only that carries across each year.
I'm using Account_Entry twice because I want a "change" column, and I want a "running total" column.
In the Date Header (by month) area I have:
{=Format$([Date],"mm/yyyy"
I'm using {} to show the text boxes here.
For the first Account_Entry sum I have selected: Running Sum... Over Group
For the second Account_Entry sum I have selected: Running Sum... No
In the Date Footer (by year) are I have:
{"Year Total"},{sum([Account_Entry])},{sum([Account_Entry]}
For the first Account_Entry sum I have selected: Running Sum... Over Group
For the second Account_Entry sum I have selected: Running Sum... No
Right now I have dates in the years 2000-2001 and my output for one City looks like this:
CITY 1
Month Running Total Change
2000
11/2000 $6,000 $6,000
12/2000 $151,000 $145,100
Year Total $151,000 $151,100
2001 01/2001 $12,400 $12,400
02/2001 $216,900 $204,500
03/2001 $531,600 $314,700
Year Total $682,700 $531,600
The year total for each City comes out right as a running total of both years (and the Change column is right, too)!
But as you can see, the monthly running total starts over when the the year 2001 starts.
I've tried using Running Sum... Over All, but that makes the Running Total continue on to each city and I don't want that.
If you've made it through all this I thank you! And if you have any thoughts, I thank you in advance!
Ken