K
Kevinm
I have report with a sub report, that has some code in it to calculate
totals. I have the code set to run on load. This works fine if I load the
sub report all by it self. But when I load the master report with the sub
report as part of it, my code does not fire. on what event do I need to set
my code to have it run??
<my code bits>
Private Sub Report_Current()
Dim RafPP As Integer
Dim DoorPP As Integer
Dim runtot As Integer
Dim Don As Integer
Don = Donation.Value
If RafflePrePaid.Value = 1 Then
RafPP = 0
Else: RafPP = RaffleTickets.Value
End If
If DoorPrePaid.Value = 1 Then
DoorPP = 0
Else: DoorPP = AuctionDoorFee.Value
End If
runtot = Don + DoorPP + RafPP
runningTotal.Value = runtot
End Sub
totals. I have the code set to run on load. This works fine if I load the
sub report all by it self. But when I load the master report with the sub
report as part of it, my code does not fire. on what event do I need to set
my code to have it run??
<my code bits>
Private Sub Report_Current()
Dim RafPP As Integer
Dim DoorPP As Integer
Dim runtot As Integer
Dim Don As Integer
Don = Donation.Value
If RafflePrePaid.Value = 1 Then
RafPP = 0
Else: RafPP = RaffleTickets.Value
End If
If DoorPrePaid.Value = 1 Then
DoorPP = 0
Else: DoorPP = AuctionDoorFee.Value
End If
runtot = Don + DoorPP + RafPP
runningTotal.Value = runtot
End Sub