P
peterk
My problem is how to total values from sub reports in a control in the main
report.
I have the following items in Access 2003...
Query1 based on Table1 and Table2. Query1 includes an integer field named
Lessons1.
Query2 based on Table1 and Table2 (a different record set). Query2 includes
an integer field named Lessons2.
Report1 based on Query1, with a control Name Text1 and control source
Lessons1.
Report2 (Query2 / Text2 / Lessons2 as above)
Report3 which has the following controls in the detail section:
StudentID
Name
Report1 and Report2 (as sub reports)
The result I want is like this:
ID Name Lessons1 Lessons2 Total
1 Smith 3 2 5
2 Jones 5 0 5
3 Brown 2 4 6
Everything works as I want it except for the Total column. I get a #Name?
error so I presume I'm not describing my controls correctly.
I have tried other approaches such as putting both fields in the same query,
but couldn't work out a way to do that either. The final result will involve
more queries / subreports but I want to get the concept right b4 I go too far.
report.
I have the following items in Access 2003...
Query1 based on Table1 and Table2. Query1 includes an integer field named
Lessons1.
Query2 based on Table1 and Table2 (a different record set). Query2 includes
an integer field named Lessons2.
Report1 based on Query1, with a control Name Text1 and control source
Lessons1.
Report2 (Query2 / Text2 / Lessons2 as above)
Report3 which has the following controls in the detail section:
StudentID
Name
Report1 and Report2 (as sub reports)
The result I want is like this:
ID Name Lessons1 Lessons2 Total
1 Smith 3 2 5
2 Jones 5 0 5
3 Brown 2 4 6
Everything works as I want it except for the Total column. I get a #Name?
error so I presume I'm not describing my controls correctly.
I have tried other approaches such as putting both fields in the same query,
but couldn't work out a way to do that either. The final result will involve
more queries / subreports but I want to get the concept right b4 I go too far.