View Full Version : Print envelope


torquay
05-02-2008, 11:57 PM
Hi I am trying to print an envelope from a customer form. I have a button that brings up the correct envelope report with the customers data in it but I want the envelope report to print without preview.

I am using
Private Sub Print_Envelope_Btn_Click()
strReportName = "Envelope"
strCriteria = "[CustomerID] = " & Me![CustomerID]
DoCmd.OpenReport strReportName, acViewPreview, , strCriteria

End Sub

Can someone tell me what else I need to add to this to make it print without preview.

Thanks

Kiwiman
05-03-2008, 12:57 AM
Howzit

You have the property set to preview (AcPrintPreview) - I think it needs to be acPrintNormal...

Kiwiman
05-03-2008, 02:34 AM
sorry that should be acViewNormal

torquay
05-03-2008, 03:49 AM
Perfect, thank you.