query to generate labels

G

Guest

I have a simple form to print a special label and a table with a field that
contains the number of labels needed for each specific item. How do I get a
record for each label needed so that they can all be printed at once.
Paul
 
G

giorgio rancati

Paul LeBlanc said:
I have a simple form to print a special label and a table with a field that
contains the number of labels needed for each specific item. How do I get a
record for each label needed so that they can all be printed at once.
Paul
 
G

Guest

Giorgio,
That looks good however I do want to go to the next record and each batch
has a different number of labels that is contained in the field [LblQty]
 
G

giorgio rancati

Hi Paul,

It is the same concept
----
Option Explicit
Dim intNumberRepeats As Integer

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)

intPrintCounter = intPrintCounter + 1
If intPrintCounter < Me![LblQty] Then
' Do not advance to the next record.
Me.NextRecord = False
Else
' Reset intPrintCounter and advance to next record.
intPrintCounter = 0
End If

End Sub
----

Bye
Giorgio

Paul LeBlanc said:
Giorgio,
That looks good however I do want to go to the next record and each batch
has a different number of labels that is contained in the field [LblQty]

giorgio rancati said:
 
G

Guest

Thanks!
I'll give it a try
Paul

giorgio rancati said:
Hi Paul,

It is the same concept
----
Option Explicit
Dim intNumberRepeats As Integer

Private Sub Detail_Print(Cancel As Integer, PrintCount As Integer)

intPrintCounter = intPrintCounter + 1
If intPrintCounter < Me![LblQty] Then
' Do not advance to the next record.
Me.NextRecord = False
Else
' Reset intPrintCounter and advance to next record.
intPrintCounter = 0
End If

End Sub
----

Bye
Giorgio

Paul LeBlanc said:
Giorgio,
That looks good however I do want to go to the next record and each batch
has a different number of labels that is contained in the field [LblQty]

giorgio rancati said:
"Paul LeBlanc" <[email protected]> ha scritto nel
messaggio I have a simple form to print a special label and a table with a field
that
contains the number of labels needed for each specific item. How do I get
a
record for each label needed so that they can all be printed at once.
Paul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

loop to generate records 2
Make duplicate Records for Wire Labels 6
Labels 10
Shipping Labels 12
Labels not duplicated 3
Creating Address labels 1
Help with derived table SQL statement in Access 4
label printing 1

Top