G
Guest
Hi
I posted previously about taking subtotals from a subreport and putting a grand total on the main report. I created a text box in the details section of the main report and put the following in the control source:
=IIf([RptSubAdLog].Report.HasData,[RptSubAdLog].Report!Company_Pledge,0). I then referenced this text box in the report footer. I was thrilled to see I did get a grand total, except it was not correct. In the subreport there are multiple companies grouped under different lead companies. They all have a company pledge and in the detail footer of the subreport is a total of each groups company pledges and this works fine. I used =Sum[Company_Pledge]. The expression I used for the grand total on the main report was only pulling the first company pledge of each group. I thought it would work if I total the =Sum[Company_Pledge] text box but did not work in the IIf formula I was using. Don't know if this is possible because it is already a calculation or if my syntex was wrong. Can anyone help me with this
Thank you. I feel I am getting close
Dorothy
I posted previously about taking subtotals from a subreport and putting a grand total on the main report. I created a text box in the details section of the main report and put the following in the control source:
=IIf([RptSubAdLog].Report.HasData,[RptSubAdLog].Report!Company_Pledge,0). I then referenced this text box in the report footer. I was thrilled to see I did get a grand total, except it was not correct. In the subreport there are multiple companies grouped under different lead companies. They all have a company pledge and in the detail footer of the subreport is a total of each groups company pledges and this works fine. I used =Sum[Company_Pledge]. The expression I used for the grand total on the main report was only pulling the first company pledge of each group. I thought it would work if I total the =Sum[Company_Pledge] text box but did not work in the IIf formula I was using. Don't know if this is possible because it is already a calculation or if my syntex was wrong. Can anyone help me with this
Thank you. I feel I am getting close
Dorothy