I am trying to print some labels for shipping containers. The query produces the total quantity of the order, the quantity per container and a calculated field figurers the number of containers. Labels are 4-up on a sheet. I could leave some blanks in between orders that didn't come up even, but would rather not. Right now I have a command button on a form, but I can't figure how to get it to multiple copies, let alone vary the number of copies with each order? HELP?
Any suggestions?
Rocky.... :D
OK it took some time, but I did find a simple solution. If you add a field called Count to the table and the form and set it to the number of copies of each label. (the text box on the form can be invisble, but must be there.) Then in the section detail print event add the following code.
Sub Detail_Print(Cancle As Integer, PrintCount As Integer)
If Me!txtLabelCount = 0 Then
Me.NextRecord = True
Me.MoveLayout = False
Me.PrintSection = False
Else
If PrintCount < Me!txtLabelCount Then
Me.NextRecord = False
End If
End If
End Sub
This comes from an old Sybex book by Ken Getz, Paul Litwin & Greg Reddick titled "Microsoft Access 2 Developer's Handbook" ISBN: 0-7821-1327-3 good stuff still today!
Any suggestions?
Rocky.... :D
OK it took some time, but I did find a simple solution. If you add a field called Count to the table and the form and set it to the number of copies of each label. (the text box on the form can be invisble, but must be there.) Then in the section detail print event add the following code.
Sub Detail_Print(Cancle As Integer, PrintCount As Integer)
If Me!txtLabelCount = 0 Then
Me.NextRecord = True
Me.MoveLayout = False
Me.PrintSection = False
Else
If PrintCount < Me!txtLabelCount Then
Me.NextRecord = False
End If
End If
End Sub
This comes from an old Sybex book by Ken Getz, Paul Litwin & Greg Reddick titled "Microsoft Access 2 Developer's Handbook" ISBN: 0-7821-1327-3 good stuff still today!