G
Guest
Hi I use this code to print report from from What must I include to specify
printing 3 copies instead of pressing the print command 3 rimes?
Private Sub printwaybill_Click()
On Error GoTo Err_printwaybill_Click
Dim stDocName As String
stDocName = "waybillrpt"
DoCmd.OpenReport "waybillrpt", acPrint, , "[waybillid]=" & [WaybillID]
Me.Visible = True
Exit_printwaybill_Click:
Exit Sub
Err_printwaybill_Click:
MsgBox Err.Description
Resume Exit_printwaybill_Click
End Sub
printing 3 copies instead of pressing the print command 3 rimes?
Private Sub printwaybill_Click()
On Error GoTo Err_printwaybill_Click
Dim stDocName As String
stDocName = "waybillrpt"
DoCmd.OpenReport "waybillrpt", acPrint, , "[waybillid]=" & [WaybillID]
Me.Visible = True
Exit_printwaybill_Click:
Exit Sub
Err_printwaybill_Click:
MsgBox Err.Description
Resume Exit_printwaybill_Click
End Sub