G
Guest
I'm using the following code to specify the starting position for labels to
print on a report. It works great except the starting point continues on to
each page, and instead I want it to only affect the first page of the report.
What can I add to restrict this to the first page?
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If PrintCount <= [SkipCounter] And [SkipControl] = "Skip" Then
Me.NextRecord = False
Me.PrintSection = False
Else
[SkipControl] = "No"
Me.PrintSection = True
Me.NextRecord = True
End If
End Sub
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
[SkipControl] = "Skip"
Cancel = True
End Sub
*Sorry for multiple post, general is being spammed with generated html.
print on a report. It works great except the starting point continues on to
each page, and instead I want it to only affect the first page of the report.
What can I add to restrict this to the first page?
Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
If PrintCount <= [SkipCounter] And [SkipControl] = "Skip" Then
Me.NextRecord = False
Me.PrintSection = False
Else
[SkipControl] = "No"
Me.PrintSection = True
Me.NextRecord = True
End If
End Sub
Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As Integer)
[SkipControl] = "Skip"
Cancel = True
End Sub
*Sorry for multiple post, general is being spammed with generated html.