I know you have heard this all before from the millions of other people asking the same question, but I have read through many other posts and NeoPa's guide and another guide i found on the internet (http://allenbrowne.com/casu-18.html) but to no avail.
Some background info:
frmTours
Contains 2 subforms (on seperate tabs), one to select the desire Tour Days and the other to select the Additional Costs.
rptInvoice
This contains two subreports in the ClientID header section (tblToursOffered subreport and tblAdditionalCosts subreport). Both of these subreports have a subtotal textbox in the Report Footer section (=Sum([DayPrice]) and =Sum([Price])). They are named 'Subtotal1' and 'Subtotal2' and show the subtotal without problem.
The problem occurs when I try to create a textbox displaying the total in the main form. I get either #Name or a #Error appearing in the box when i run the report. I have tried lots of different control sources for this text box and have placed it in all different sections of rptInvoice (ClientID Header, Detail, ClientID Footer and Page Footer). The code I have tried is as follows (I only tried to display Subtotal1 to start with but would like it to total both):
Expand|Select|Wrap|Line Numbers
- =IIf([tblToursOffered subreport].[Report].[HasData],Nz([tblToursOffered subreport].[Report].[Subtotal1],0),0)
I have tried to explain this as best I can but any information you need, let me know.
Many thanks in advance for any help you can offer.
Edd