Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printing multiple copies based on data value

Status
Not open for further replies.

RideGuy

Technical User
Feb 28, 2007
2
US
I have an Access 2000 db which processes permit orders, and prints the permits. A permit order can consist of more than one type of permit, as well as more than 1 copy of each type. For example, one order might have 3 AH permits and 2 WH permits, for a total of 5 permits.

I have a tables for customers (tblCust), orders (tblPermitOrders), and order details (tblPermitDetails). I have a main form which contains the customer info (frmCust). It has a subform which contains the order info (sfrmPermitOrder), including the total quantity of permits in the order (TotQty). This subform has a subform (sfrmPermitDetail) which contains the amount (Qty) and the details for each group of permits in the order.

I need a button on sfrmPermitOrder which opens a report which is the actual permits. Each permit needs to print a on different page and contains details about the permit.

I'm stuck on how to use the values entered in sfrmPermitDetail.Qty and sfrmPermitOrder.TotQty to determine the number of the permits to print. For example, if one record in sfrmPermitDetail has 3 AH permits, and a 2nd record has 2 WH permits, when I print the permit order, it needs to print 5 pages, 3 pages for AH permits and 2 pages for WH permits.

I'd appreciate any help anyone can provide! Thanks!
 
Thank you Duane,

That was the approach I needed!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top