Passing parameters to a report (1 Viewer)

alanm2007

Registered User.
Local time
Today, 06:09
Joined
Sep 22, 2011
Messages
10
I'm trying to work out how to print a number of labels depending on data in my table. I have a report set up using a select query, but how do I send data through VBA to the report.

I have a table "tblCartons" which has multiple records linked to my table "tblShipLists" by the primary key (autonumber)

I can write the code to work out which label number I'm trying to print and how many total labels I need (i.e. 1 of 4) but how do I pass the data to the report or query so I can use it as a printable field on the report?

Thanks in advance
 

Mark_

Longboard on the internet
Local time
Yesterday, 22:09
Joined
Sep 12, 2017
Messages
2,111
Are these full page labels or do you need to print multiple labels per page?
IF full page, you can call the report or sub-report N number of times per record.
IF NOT full page, you may want to add a table to your front end as a temporary queue for printing. Add N number of records to this temporary table for each real record, print your labels, then delete all entries in the temporary table. You won't need to worry much about bloat as a new copy of the front end won't have it.
 

Users who are viewing this thread

Top Bottom