Printing various pages of report for selected records

G

Guest

I have a query with the following fields: LastName, FirstName, PhoneNumber,
and NumberOfTickets. I need to print tickets, which I created as a report,
based on the value in NumberOfTickets field.

The ticket report has LastName, FirstName, and PhoneNumber fields. How do I
loop printing the reports for all records based on their NumberOfTickets
value. Some records may have only 1 tickets while other records may have
more than 1 tickets.

Any tips will be appreciated.

RT
 
D

Duane Hookom

You can create a table "tblNums" with a single numeric field "Num" with
numbers 1 through your maximum NumberOfTickets. Add this table to your
report's record source and set the criteria under the Num field to:
<=[NumberOfTickets]
This will result in 3 duplicate records where the NumberOfTickets value is
3.
 
G

Guest

Thanks! I am going to try your advice and post the result when I am done.

RT

Duane Hookom said:
You can create a table "tblNums" with a single numeric field "Num" with
numbers 1 through your maximum NumberOfTickets. Add this table to your
report's record source and set the criteria under the Num field to:
<=[NumberOfTickets]
This will result in 3 duplicate records where the NumberOfTickets value is
3.

--
Duane Hookom
MS Access MVP


RT said:
I have a query with the following fields: LastName, FirstName, PhoneNumber,
and NumberOfTickets. I need to print tickets, which I created as a
report,
based on the value in NumberOfTickets field.

The ticket report has LastName, FirstName, and PhoneNumber fields. How do
I
loop printing the reports for all records based on their NumberOfTickets
value. Some records may have only 1 tickets while other records may have
more than 1 tickets.

Any tips will be appreciated.

RT
 
G

Guest

Thanks, Duane! It works beautifully.

RT

Duane Hookom said:
You can create a table "tblNums" with a single numeric field "Num" with
numbers 1 through your maximum NumberOfTickets. Add this table to your
report's record source and set the criteria under the Num field to:
<=[NumberOfTickets]
This will result in 3 duplicate records where the NumberOfTickets value is
3.

--
Duane Hookom
MS Access MVP


RT said:
I have a query with the following fields: LastName, FirstName, PhoneNumber,
and NumberOfTickets. I need to print tickets, which I created as a
report,
based on the value in NumberOfTickets field.

The ticket report has LastName, FirstName, and PhoneNumber fields. How do
I
loop printing the reports for all records based on their NumberOfTickets
value. Some records may have only 1 tickets while other records may have
more than 1 tickets.

Any tips will be appreciated.

RT
 

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

Top