I have a main report "rptBalanceOwing" and it has 3 subreports "rsubInvoice", "rsubInterest" and "rsubPayments". The main report and the subs are linked by a CustomerID field.
The main report has 4 text boxes. One, Text8, picks up the Invoice totals per customer from "rsubInvoice." A second, Text13, picks up Interest charges from "rsubInterest." The third, Text 21, picks up Payments from "rsubPayments." The 4th text box, Text23, calculates the balance owing (=[Text8]+[Text13]-[Text21])
Each of the first 3 text boxes follows this structure...
=IIf([Invoice].[Report].[HasData]=-1,[rsubInvoice]![Text8],0)
Now, after that explanation, what I want to be able to do is show the grand total of all balances owing. In other words, the total of all balances derived in Text23 for each customer.
Each of the subreports calculates the totals fine, however I can't get the grand totals in the main report to work. It assume it's a syntax problem.
As far as I know, I am properly referring to the subreport controls, e.g. =[rsubInvoice].[Report]![Text8]
Any suggestions would be welcome.
Tom
The main report has 4 text boxes. One, Text8, picks up the Invoice totals per customer from "rsubInvoice." A second, Text13, picks up Interest charges from "rsubInterest." The third, Text 21, picks up Payments from "rsubPayments." The 4th text box, Text23, calculates the balance owing (=[Text8]+[Text13]-[Text21])
Each of the first 3 text boxes follows this structure...
=IIf([Invoice].[Report].[HasData]=-1,[rsubInvoice]![Text8],0)
Now, after that explanation, what I want to be able to do is show the grand total of all balances owing. In other words, the total of all balances derived in Text23 for each customer.
Each of the subreports calculates the totals fine, however I can't get the grand totals in the main report to work. It assume it's a syntax problem.
As far as I know, I am properly referring to the subreport controls, e.g. =[rsubInvoice].[Report]![Text8]
Any suggestions would be welcome.
Tom