Print many records onto Label

  • Thread starter Thread starter Pete
  • Start date Start date
P

Pete

is it possible to print all records to a label from a one to many
relationship e.g

I wish to print all times swum on an evening to a label for that
member. At the moment, each time is printed on a seperate label.
Ideally what I want is all times swum under one name on a label

hope I have explained this OK

tia

Peter
 
Another way perhaps simpler 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 doesn'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
 
Back
Top