G
Guest
Any ideas how to get a report to print the same thing it displays when in
print preview? I am calculating totals in code:
Private Function GetGroupTotal1() As String 'SubGroup
On Error GoTo Err_Handler
GetGroupTotal1 = dblCostSum1
txtHoursSum1 = dblHoursSum1
' Reset the variable to 0 for next group.
dblCostSum1 = 0
dblHoursSum1 = 0
Exit_Here:
Exit Function
Err_Handler:
MsgBox Err.Description
Resume Exit_Here
End Function
I have a text box in the group footer that calls GetGroupTotal1 (). Both
GetGroupTotal1 & txtHoursSum1 are calculating properly in print preview, but
when I send the report to the printer, it adds the detail totals for the next
record to the previous groups totals.
print preview? I am calculating totals in code:
Private Function GetGroupTotal1() As String 'SubGroup
On Error GoTo Err_Handler
GetGroupTotal1 = dblCostSum1
txtHoursSum1 = dblHoursSum1
' Reset the variable to 0 for next group.
dblCostSum1 = 0
dblHoursSum1 = 0
Exit_Here:
Exit Function
Err_Handler:
MsgBox Err.Description
Resume Exit_Here
End Function
I have a text box in the group footer that calls GetGroupTotal1 (). Both
GetGroupTotal1 & txtHoursSum1 are calculating properly in print preview, but
when I send the report to the printer, it adds the detail totals for the next
record to the previous groups totals.