A
Associates
Hi,
I have been trying to make the following VB code to work but with no luck.
Wonder if anyone might be able to help me out.
Me.TotNumOfStudents = Sum([Reports]![Students Report]![StudentsPerClass])
I have a report called MasterReport which has a subreport, called "Students
Report". What i want to do here is to be able to work out a total of number
of students per classroo. To do this, i need to do a sum of StudentsPerClass
that exists in the subreport, Students Report. When i run the code, it
prompts me for the value of StudentsPerClass in a Windows Dialog box.
The textbox of TotNumOfStudents is actually in the MasterReport, though.
I donot understand why it did not like it. Would it be because the subreport
has not yet been run and therefore the MasterReport can not know the value
for the textbox TotNumOfStudents?
Any help would be greatly appreciated.
Thank you in advance
I have been trying to make the following VB code to work but with no luck.
Wonder if anyone might be able to help me out.
Me.TotNumOfStudents = Sum([Reports]![Students Report]![StudentsPerClass])
I have a report called MasterReport which has a subreport, called "Students
Report". What i want to do here is to be able to work out a total of number
of students per classroo. To do this, i need to do a sum of StudentsPerClass
that exists in the subreport, Students Report. When i run the code, it
prompts me for the value of StudentsPerClass in a Windows Dialog box.
The textbox of TotNumOfStudents is actually in the MasterReport, though.
I donot understand why it did not like it. Would it be because the subreport
has not yet been run and therefore the MasterReport can not know the value
for the textbox TotNumOfStudents?
Any help would be greatly appreciated.
Thank you in advance