J
Jim/Chris
Here is an interesting mailing label code that I got from
one of the MVPs(FreG)
Label - Print only what needed and specify where on paper
This code comes from FredG:
Try this code. I know it works both in preview and printing.
If this is what you are already using, or if this does't
work, then your
problem lies elsewhere.
====
First make sure your label report is properly printing a
full sheet of
labels.
Then add a Report Header to your label report.
Add 2 text boxes to the Header.
1) Name one SkipControl
Leave it's control source unbound
2) Name the other SkipCounter
Set it 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
Jim
one of the MVPs(FreG)
Label - Print only what needed and specify where on paper
This code comes from FredG:
Try this code. I know it works both in preview and printing.
If this is what you are already using, or if this does't
work, then your
problem lies elsewhere.
====
First make sure your label report is properly printing a
full sheet of
labels.
Then add a Report Header to your label report.
Add 2 text boxes to the Header.
1) Name one SkipControl
Leave it's control source unbound
2) Name the other SkipCounter
Set it 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
Jim
access 2002 without doing a mail merge into word??-----Original Message-----
how do i create mailing labels (to put on envelopes) using