Printing Label from Access

  • Thread starter Thread starter Simon
  • Start date Start date
S

Simon

On Access i have a form that shows customer details, i would like a
button that will print a label of thier address but i would like it to
give me teh option of which label on the A4 sheet of lables i would
like to print to


Can any one help

Simion
 
On Access i have a form that shows customer details, i would like a
button that will print a label of thier address but i would like it to
give me teh option of which label on the A4 sheet of lables i would
like to print to

Can any one help

Simion

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's 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
=====

When you are ready to run the label report, it will ask how many label
positions to skip.
Then it will run the report.
 
Back
Top