G
Guest
I've placed a "Print Invoice" command button on the bottom of a form, but
when I select the button, ALL of the invoices are printed. How can I just
print the current form that I'm working with?
Here's the current print procedure:
***************************
Private Sub PrintInvoice_Click()
On Error GoTo Err_PrintInvoice_Click
Dim stDocName As String
stDocName = "Invoice"
DoCmd.OpenReport stDocName, acNormal
Exit_PrintInvoice_Click:
Exit Sub
Err_PrintInvoice_Click:
MsgBox Err.Description
Resume Exit_PrintInvoice_Click
End Sub
***************************
when I select the button, ALL of the invoices are printed. How can I just
print the current form that I'm working with?
Here's the current print procedure:
***************************
Private Sub PrintInvoice_Click()
On Error GoTo Err_PrintInvoice_Click
Dim stDocName As String
stDocName = "Invoice"
DoCmd.OpenReport stDocName, acNormal
Exit_PrintInvoice_Click:
Exit Sub
Err_PrintInvoice_Click:
MsgBox Err.Description
Resume Exit_PrintInvoice_Click
End Sub
***************************