HomeGrowth
Technical User
I have a Label field (named lblWarningMsg) in my Header of the report, I want this Label field printed once on 1st header on every page, suppress the label field if the 2nd header appear on the same page.
I have 2 text fields called ctTrainingTypeHeader and ctPageHeader
both have the Control Source set to = 1, and Running Sum set to 'Over All'.
I have the following code OnFormat for the header:
Private Sub GroupHeader1_Format(Cancel As Integer, FormatCount As Integer)
If Me.ctTrainingTypeHeader = Me.ctPageHeader Then
Me.lblWarningMsg.Visible = True
Else
Me.lblWarningMsg.Visible = False
End If
End Sub
It does not work? even ctTrainingTypeHeader not = to ctPageHeader on the 2nd header of the report. Is there another way to do it? Thanks.
I have 2 text fields called ctTrainingTypeHeader and ctPageHeader
both have the Control Source set to = 1, and Running Sum set to 'Over All'.
I have the following code OnFormat for the header:
Private Sub GroupHeader1_Format(Cancel As Integer, FormatCount As Integer)
If Me.ctTrainingTypeHeader = Me.ctPageHeader Then
Me.lblWarningMsg.Visible = True
Else
Me.lblWarningMsg.Visible = False
End If
End Sub
It does not work? even ctTrainingTypeHeader not = to ctPageHeader on the 2nd header of the report. Is there another way to do it? Thanks.