G
Guest
On an Access Report, I would like two controls to be visible on the page
header section only if they appear on the first page.
While the If clause in the following statement is not triggered on the first
page, it is triggered on subsequent pages, but the control is rendered
invisible on all pages.
Any ideas how I can get the control to remain visible on only the first page?
- - - - - - - -
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
If Me.Page <> 1 Then
With Me.ControlName
.Visible = False
.Top = 0
.Left = 0
.Height = 0
.Width = 0
End with
End If
header section only if they appear on the first page.
While the If clause in the following statement is not triggered on the first
page, it is triggered on subsequent pages, but the control is rendered
invisible on all pages.
Any ideas how I can get the control to remain visible on only the first page?
- - - - - - - -
Private Sub PageHeaderSection_Format(Cancel As Integer, FormatCount As
Integer)
If Me.Page <> 1 Then
With Me.ControlName
.Visible = False
.Top = 0
.Left = 0
.Height = 0
.Width = 0
End with
End If