I am trying to print a report called 'Invoice' from a form showing the order details. I have set up a command button on the form to print the invoice with the event procedure as follows:
strDocName = "Invoice"
DoCmd.OpenReport strDocName, acViewPreview, , "[Invoice...