Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Access labels

2 views
Skip to first unread message

Niet@discussions.microsoft.com Jay Niet

unread,
Jun 24, 2005, 9:29:13 AM6/24/05
to
How do I set up mailing labels in Access that will print a full sheet of a
single record? I have already set up my query selecting the single record,,
but when I use the Label Wizard, it does not give me the option to select a
full sheet for the same label. Any suggestions?

fredg

unread,
Jun 24, 2005, 9:56:51 AM6/24/05
to

This will permit you to enter the number of times to repeat the
labels, as well as skip missing label positions on an already used
sheet.

First make sure your label report properly prints 1 label per record.

Then add a Report Header to the label report.
Add 3 unbound text boxes to the header.
1) Set the Control Source to:
= [Skip how many]
Name this control SkipCounter
2) Leave the second control unbound.
Name this control SkipControl
3) Set the third control's Control Source to:
=[Repeat how many]
Name it RepeatCounter

Next code the Report Header OnFormat event:

Private Sub ReportHeader_Format(Cancel As Integer, FormatCount As
Integer)
[SkipControl] = "Skip"
Cancel = True
End Sub
=======
Now code the Detail OnPrint Event:
(Note that intMyPrint is Static!!)

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)
Static intMyPrint As Integer
If PrintCount <= [SkipCounter] And [SkipControl] = "Skip" Then
Me.NextRecord = False
Me.PrintSection = False
intMyPrint = 0
Else
[SkipControl] = "No"
Me.PrintSection = True
Me.NextRecord = True
intMyPrint = intMyPrint + 1
If IsNull([RepeatCounter]) Then
ElseIf intMyPrint Mod [RepeatCounter] = 0 Then
Me.NextRecord = True
intMyPrint = 0
Else
Me.NextRecord = False
End If
End If

End Sub
=========

When you run the report, it will ask how many labels to skip, then how
many times to repeat each label.
--
Fred
Please only reply to this newsgroup.
I do not reply to personal email.

0 new messages