Access 2010
As part of a Loop procedure I have a OpenReport command that has a "Where" statement included so that it outputs each Looped instance to our printer as below:-
DoCmd.OpenReport "rptrenewalinvite", , , "tblPolicy.LpPolID='" & PolicyID & "'"
We are now wanting to create PDF files as part of the loop rather than output to printer but this does not seem to be an option with the "OpenReport" command and it seems I need the "OutPutTo" command:-
DoCmd.OutputTo acOutputReport, "rptrenewalinvite", acFormatPDF, Path & ReportName & ".pdf"
The problem is, we cannot add the "Where" clause to the OutPutTo command!
Any ideas how we can achieve this??
Thanks - in hope!