I need to only print one page of a report, not the whole thing, but do so automatically. Annoyingly, I can't seem to get it to work!
This:
works ok, but prints out all reports, not just the one I want.
So, I tired this:
But this causes Access to crash catastrophicall y.
Any ideas why its happy to deal with lots of reports, but just one flummoxes it?
This:
Code:
DoCmd.OutputTo acOutputReport, "rptmouldcurrent", acFormatPDF, "C:\Temp\Test.pdf", False
So, I tired this:
Code:
DoCmd.OpenReport "rptmouldcurrent", acViewPreview, , "[Mouldref]='" & Me.CboxMould & "'", acWindowNormal DoCmd.OutputTo acOutputReport, "rptmouldcurrent", acFormatPDF, "C:\Temp\Test.pdf", False DoCmd.Close acReport, "rptmouldcurrent"
Any ideas why its happy to deal with lots of reports, but just one flummoxes it?
Comment