G
Guest
Hello
I have a report which displays perfectly when in preview mode. However the
values in two of the textboxes on the report seem to double up when I try to
print it. This happens whether I initiate printing programmatically or open
in preview mode and print from the file menu. Does anyone have any idea why
this is happening? The code is as follows:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
'allocate time to Wider Opps or Normal
Select Case Me!Text148
Case Is = 2 'Wider Opps
Me![WopHrs] = Nz(Me![WopHrs]) + Me![Text151]
Me![WopMins] = Nz(Me![WopMins]) + Me![Text152]
Case Else 'Normal
Me![NormalHrs] = Nz(Me![NormalHrs]) + Me![Text151]
Me![NormalMins] = Nz(Me![NormalMins]) + Me![Text152]
End Select
End Sub
The boxes WopHrs, WopMins, NormalHrs and NormalMins are in a group footer
while Text151 and Text152 are in the detail section.
Any help would be gratefully received.
I have a report which displays perfectly when in preview mode. However the
values in two of the textboxes on the report seem to double up when I try to
print it. This happens whether I initiate printing programmatically or open
in preview mode and print from the file menu. Does anyone have any idea why
this is happening? The code is as follows:
Private Sub Detail_Format(Cancel As Integer, FormatCount As Integer)
'allocate time to Wider Opps or Normal
Select Case Me!Text148
Case Is = 2 'Wider Opps
Me![WopHrs] = Nz(Me![WopHrs]) + Me![Text151]
Me![WopMins] = Nz(Me![WopMins]) + Me![Text152]
Case Else 'Normal
Me![NormalHrs] = Nz(Me![NormalHrs]) + Me![Text151]
Me![NormalMins] = Nz(Me![NormalMins]) + Me![Text152]
End Select
End Sub
The boxes WopHrs, WopMins, NormalHrs and NormalMins are in a group footer
while Text151 and Text152 are in the detail section.
Any help would be gratefully received.