G
Guest
Here is my code for creating a PDF using the click event of a command button:
DoCmd.Echo No
Application.Printer = Application.Printers("CutePDF Writer")
DoCmd.OpenReport "SymphonyInvoice1", acViewPreview
DoCmd.PrintOut
DoCmd.Echo Yes
DoCmd.Close
The <DoCmd.Echo No> does what I want...once. The next time I click the
button on any record, it doesn't work and I see everything I don't want to
see.
Why is that?
DoCmd.Echo No
Application.Printer = Application.Printers("CutePDF Writer")
DoCmd.OpenReport "SymphonyInvoice1", acViewPreview
DoCmd.PrintOut
DoCmd.Echo Yes
DoCmd.Close
The <DoCmd.Echo No> does what I want...once. The next time I click the
button on any record, it doesn't work and I see everything I don't want to
see.
Why is that?