Hi,
I need to be able to not print some fields from a group header if the detail records span more than one page. For instance, if group record AGR100 has detail records that go over one page, I don't need to show the field txtBaseFY1A in the group header for AGR100's subsequent pages. The group header's Repeat Section property is set to yes because I need to display the group header on every page.
I tried the following code, but it does not seem to work:
Private Sub GroupHeader0_Print(Cancel As Integer, PrintCount As Integer)
If Me.Detail.HasContinued = True Then
Me.txtBaseFY1A.Visible = False
Else
Me.txtBaseFY1A.Visible = True
End If
End Sub
Any idea what the problem could be?
Thanks,
ddub
I need to be able to not print some fields from a group header if the detail records span more than one page. For instance, if group record AGR100 has detail records that go over one page, I don't need to show the field txtBaseFY1A in the group header for AGR100's subsequent pages. The group header's Repeat Section property is set to yes because I need to display the group header on every page.
I tried the following code, but it does not seem to work:
Private Sub GroupHeader0_Print(Cancel As Integer, PrintCount As Integer)
If Me.Detail.HasContinued = True Then
Me.txtBaseFY1A.Visible = False
Else
Me.txtBaseFY1A.Visible = True
End If
End Sub
Any idea what the problem could be?
Thanks,
ddub