ms access 2010 one report with multiple records.

I want the report to print labels for the multiple records with different label quantities.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

A simple way to do this using a query rather than programming is to create a table with a single column named LabelQty that contains a number from 1 to n with n being the maximum number of labels you need to print for any single item.  So, if the max is 12, then the table must contain 12 records with the values 1-12.

In your label's RecordSource query, join to this LabelCount table using a non equi-join.

Select ...
From tblLabel Join tblLabelCount on tblLabelCount.LabelQty <= tblLabel.LabelQty.

To make this join you will need to switch to SQL View.  So, start with an equi-join (=), then switch views and change the join operation.  Once you do this, you will not ever be able to render the query in QBE view again.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jeffrey CoachmanMIS LiasonCommented:
Also note that no matter how many you print, are limited to one grouping per page.

In other words, ..if you are printing 6 of each of your 3 labels, (for example: 6 for Fred, 6 for Adam, and 6 for Gertrude, =18 total labels) will only be able to print 6 labels on a page.
1 page for Adam, 1 page for Fred , and 1 page for Gertrude

Put another way,
...If you are using the Avery 5160 labels (30 per sheet)
In the scenario above, you will only print 6 labels on each page
30 blank labels - 6 Printed labels = 24 wasted labels per sheet.

Put still another way, there is no easy way to "economize" the labels and print all 18 on one sheet.

Jeffrey CoachmanMIS LiasonCommented:
I like your technique of using the join.
In the old days, I would simply load up a temp table with dupe records...

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Access

From novice to tech pro — start learning today.