M
Mike Revis
Hi Group,
Access 2000 win xppro
I have a command button on my form to print labels.
I would like to have an input box to enter the quantity of labels to print.
The code below is as far as I've gotten. It doesn't work. I should say the
inputBox part works.
I can't figure out how to get the quantity entered to give me that many
copies.
Private Sub cmdPrintLabel_Click()
On Error GoTo Err_cmdPrintLabel_Click
Dim stDocName As String
stDocName = "rpt4UpLabel"
InputBox "Enter quantity to print", "Label Quantity"
DoCmd.OpenReport stDocName, acViewPreview
Exit_cmdPrintLabel_Click:
Exit Sub
Err_cmdPrintLabel_Click:
MsgBox Err.Description
Resume Exit_cmdPrintLabel_Click
End Sub
As always any thoughts, comments or suggestions are welcome.
regards
Mike
Access 2000 win xppro
I have a command button on my form to print labels.
I would like to have an input box to enter the quantity of labels to print.
The code below is as far as I've gotten. It doesn't work. I should say the
inputBox part works.
I can't figure out how to get the quantity entered to give me that many
copies.
Private Sub cmdPrintLabel_Click()
On Error GoTo Err_cmdPrintLabel_Click
Dim stDocName As String
stDocName = "rpt4UpLabel"
InputBox "Enter quantity to print", "Label Quantity"
DoCmd.OpenReport stDocName, acViewPreview
Exit_cmdPrintLabel_Click:
Exit Sub
Err_cmdPrintLabel_Click:
MsgBox Err.Description
Resume Exit_cmdPrintLabel_Click
End Sub
As always any thoughts, comments or suggestions are welcome.
regards
Mike