Hi,
Instead of creating a separate table for your label data, just use a
query that does what is called a cartesian join with a numbers table.
Borrowing this from Dale Fye.
Create another table (tblNumbers) with a single field (lngNumber) of
type long integer. Put 10 records in it (the numbers 0 to 9).
Create another query that pulls your data from your form's table and
uses the tblNumbers table to produce multiple copies of the same label:
select Job, Line, [Name], [Number]
from tblYourTable, tblNumbers
where Job = [Forms]![frmYourForm]![txtJob]
and lngNumber < 5;
Several notes:
1) This will produce five copies of the same label.
2) "Name" and "Number" are reserved words in Access. It is better not
to use those for column and control names as doing so can produce unexpected
results. Better to use something like JobName, SomeNumber. Search for
"reserved words" in online help for a list of reserved words.
3) If you need more than 10 labels, create a query that uses the
tblNumbers and use the query instead of the table. This will provide the
numbers from 0 to 99:
select Tens.lngNumber * 10 + Ones.lngNumber as lngNumber
from tblNumbers as Tens, tblNumbers as Ones;
4) The [Forms]![frmYourForm]![txtJob], in case you do not know, is how
you tell the query to get the value from the "txtJob" control (presumed name
of the control that holds the Job) of the currently displayed row in your
from named "frmYourForm". The form must remain open for the query to work.
Use the first query as the data source when you run the create label
report wizard.
Hopes that helps,
Clifford Bass