S
Shannon
I used the following code (which I received at this
newsgroup site) to prompt users to input the number of
labels to skip when a sheet of labels had some used
already. Now I would like to prompt users to input the
number of labels to print when more than one is desired. I
am not familiar with exactly what the code is doing to be
able to modify what I was given. Any help is appreciated.
Add Report Header to label report.
Add 2 test boxes to the Header.
1) Name one SkipControl
Leave it's control source unbound.
2) Name the other SkipCounter
Set its control source to =[Skip How Many?]
Now code the Report Header Format event as below:
Private Sub ReportHeader_Format(Cancel As Integer,
FormatCount As Integer)
[SkipControl] = "Skip"
Cancel = True
End Sub
============
Next code the Detail OnPrint event:
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
========
Thanks,
Shannon
newsgroup site) to prompt users to input the number of
labels to skip when a sheet of labels had some used
already. Now I would like to prompt users to input the
number of labels to print when more than one is desired. I
am not familiar with exactly what the code is doing to be
able to modify what I was given. Any help is appreciated.
Add Report Header to label report.
Add 2 test boxes to the Header.
1) Name one SkipControl
Leave it's control source unbound.
2) Name the other SkipCounter
Set its control source to =[Skip How Many?]
Now code the Report Header Format event as below:
Private Sub ReportHeader_Format(Cancel As Integer,
FormatCount As Integer)
[SkipControl] = "Skip"
Cancel = True
End Sub
============
Next code the Detail OnPrint event:
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
========
Thanks,
Shannon