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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

use field "amount" as number of pages 2

Status
Not open for further replies.

pdtit

Technical User
Nov 4, 2001
206
BE
hey,

I'll try to explain what I mean by my question :

I have a report which comes from an order-entry form. On this form, I have a Yes/No field; when this field is selected, and then I use a print-button I created, it should print a barcode-label (setup as 1 page).

This button in fact calls up the report (barcode-label) and it should print this xxx times, where xxx is the number of products ordered (the field amount).

Does anyone have some piece of code to do this ??

Regards,

PdtIt
 
Heres code that you place in the Detail Print event of a report to inspect a field called Qty and print as many copies as are in the Qty field.
[tt]
If Qty = 0 Then
Me.NextRecord = True
Me.MoveLayout = False
Me.PrintSection = False
Else
If PrintCount < Qty Then
Me.NextRecord = False
End If
End If
[/tt]

HTH Joe Miller
joe.miller@flotech.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top