I have read all of the previous posts on this topic and have followed the instructions to a 'T' and am still not getting the correct results hence this post....
I have a report in CR 9....
My main report includes company information in a group header and activity detail in the details section for a particular activity type. I have totalled this and it's working great.
I then had to add in a subreport to show a different activity for the companies and this is where my problems start. I created the subreport and created a variable called 'MyTotal' that looks like this:
whileprintingrecords;
shared currencyvar mytotal:= Sum ({Activity.AMOUNT})
I placed this is the report footer of the subreport. My subreport is linked to the main report by CompanyID. I put the subreport in the main report in a group footer and in the report footer of the main report I created a variable called TotalPayments and it looks like this:
whileprintingrecords;
shared currencyvar MyTotal;
MyTotal
When I generate the report the total that I get at the end of the report only shows the last payment that was reported in the subreport -- not all of them added together.
What in the world am I doing wrong? I've rewritten this report twice as well as tried putting the variables in a number of different sections.
Thanks in advance for any help I can get.
I have a report in CR 9....
My main report includes company information in a group header and activity detail in the details section for a particular activity type. I have totalled this and it's working great.
I then had to add in a subreport to show a different activity for the companies and this is where my problems start. I created the subreport and created a variable called 'MyTotal' that looks like this:
whileprintingrecords;
shared currencyvar mytotal:= Sum ({Activity.AMOUNT})
I placed this is the report footer of the subreport. My subreport is linked to the main report by CompanyID. I put the subreport in the main report in a group footer and in the report footer of the main report I created a variable called TotalPayments and it looks like this:
whileprintingrecords;
shared currencyvar MyTotal;
MyTotal
When I generate the report the total that I get at the end of the report only shows the last payment that was reported in the subreport -- not all of them added together.
What in the world am I doing wrong? I've rewritten this report twice as well as tried putting the variables in a number of different sections.
Thanks in advance for any help I can get.