I have a report with a subreport.
The Report is called Invoices and the subReport is called Purchases.
In the subreport I have a filed that shows Amount. It can contain several rows if there were more than one purchase. so in the subreport footer I have a text box with control source =Sum ([Amount])
Works great.
Also in the main reprot I have a text box with control source =[WorkHours]*[BillingRate]
This is fine.
The problem I am having is I want to now add the totals from the sub report and the report. I realize I cannot use the text boxes with the calculations because they are not stored. I have tried setting the control source with functions but to no avail. Every time it asks me to key in an amount instead of performing the calculation.
My question is how can I get these to add together. I have tried =Sum(Sum([WorkHours]*[BillingRate],(Sum([Purchases].[Amount]))))
But everytime it asks me something like enter Purchases.Amount
Any help is greatlt appreciated.
Thanks
The Report is called Invoices and the subReport is called Purchases.
In the subreport I have a filed that shows Amount. It can contain several rows if there were more than one purchase. so in the subreport footer I have a text box with control source =Sum ([Amount])
Works great.
Also in the main reprot I have a text box with control source =[WorkHours]*[BillingRate]
This is fine.
The problem I am having is I want to now add the totals from the sub report and the report. I realize I cannot use the text boxes with the calculations because they are not stored. I have tried setting the control source with functions but to no avail. Every time it asks me to key in an amount instead of performing the calculation.
My question is how can I get these to add together. I have tried =Sum(Sum([WorkHours]*[BillingRate],(Sum([Purchases].[Amount]))))
But everytime it asks me something like enter Purchases.Amount
Any help is greatlt appreciated.
Thanks