I am trying to create a total # in my Group footer field of my report. I am doing this through code. My code is:
''''''''''''''''''''''''''''''''''''''
Dim TotalNum As Integer
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
TotalNum = TotalNum + Me.NO_PEOPLE
End Sub
Private Sub GroupFooter0_Format(Cancel As Integer, FormatCount As Integer)
Me.Total = TotalNum
TotalNum = 0
End Sub
''''''''''''''''''''''''''''''''''''''''
For some reason, sometimes it loops through the same records twice. Anyway, after every group I need the total to be zeroed out so that it can start a new running total. Any ideas why this is happening?
Thanks!
Erica
''''''''''''''''''''''''''''''''''''''
Dim TotalNum As Integer
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
TotalNum = TotalNum + Me.NO_PEOPLE
End Sub
Private Sub GroupFooter0_Format(Cancel As Integer, FormatCount As Integer)
Me.Total = TotalNum
TotalNum = 0
End Sub
''''''''''''''''''''''''''''''''''''''''
For some reason, sometimes it loops through the same records twice. Anyway, after every group I need the total to be zeroed out so that it can start a new running total. Any ideas why this is happening?
Thanks!
Erica