Hello All,
I have a crosstab query report in Access 97 that I am currently working on. The data is being displayed correctly on the report, but I can't get the totals to show in a group footer. I get zeroes, but I don't get the summed totals for each column in my report.
It works in the report footer, but not for the group footer. The other variables shown in the code are global variables. The code for the totals is below:
It's driving me crazy that it's not working properly.
Thanks in advance for your assistance.
I have a crosstab query report in Access 97 that I am currently working on. The data is being displayed correctly on the report, but I can't get the totals to show in a group footer. I get zeroes, but I don't get the summed totals for each column in my report.
It works in the report footer, but not for the group footer. The other variables shown in the code are global variables. The code for the totals is below:
Code:
Private Sub GroupFooter0_Print(Cancel As Integer, PrintCount As Integer)
Dim intX As Integer
For intX = 2 To intColumnCount
Me("Tot" + Format(intX)) = lngRgColumnTotal(intX)
Next intX
Me("Tot" + Format(intColumnCount + 1)) = lngReportTotal
For intX = intColumnCount + 2 To conTotalColumns
Me("Tot" + Format(intX)).Visible = False
Next intX
End Sub
It's driving me crazy that it's not working properly.
Thanks in advance for your assistance.