rhodesengr
Registered User.
- Local time
- Today, 08:38
- Joined
- Sep 4, 2007
- Messages
- 14
In previous post, the problem was how to add two numbers from two subreports in a control on the main report. The answer was given as using this syntax:
=[time entries subreport].Form!Total_Labor+[Expense entries subreport].Form!Total_Expenses
This did in fact work for me.
But I have no idea why this works. What I tried at first was:
=Reports![time entries subreport]![Total_Labor] + Reports![Expense entries subreport]![Total_Expenses]
I built this using the expression builder. It returns a #Name? error in the control on the main report. Looks like the difference is ".Form". I can not find an explantion of what .form does in the expression. I can not find a way to use the expression builder to build the version that works. If it matters I am using Access2000.
I am trying to understand all this.
=[time entries subreport].Form!Total_Labor+[Expense entries subreport].Form!Total_Expenses
This did in fact work for me.
But I have no idea why this works. What I tried at first was:
=Reports![time entries subreport]![Total_Labor] + Reports![Expense entries subreport]![Total_Expenses]
I built this using the expression builder. It returns a #Name? error in the control on the main report. Looks like the difference is ".Form". I can not find an explantion of what .form does in the expression. I can not find a way to use the expression builder to build the version that works. If it matters I am using Access2000.
I am trying to understand all this.