Okay now we are getting somewhere. Thanks for showing me that.
This works:
Code:DoCmd.OpenReport "QuoteMain", acViewPreview DoCmd.OutputTo acOutputReport, "", acFormatPDF, ""
This Doesnt:
When the "output to" window opens it does write in "test.pdf" so i still cant see why this is an error.Code:DoCmd.OpenReport "QuoteMain", acViewPreview DoCmd.OutputTo acOutputReport, "test", acFormatPDF, ""
At least i know where the error is now and ill try to manipulate it to work.