access 2010 vba - outputing a report to multiple pdf's Can the printing Dialog box be supressed

Anonymous
2011-12-22T19:33:27+00:00

I have a report  that is 1700 pages or more. It produces a front page and back page for each of the 170 names in the query.

It has a subreport for each Student that could vary from 1 to 17 pages.

I can output this report to a single PDF.

I have created a loop that opens the filtered report for each student and outputs a single pdf in its new or existing folder.

This all works well but whilst the loop is running,  for each report to PDF there is a 'Printing' to Dialog box appearing momentarily.

This flashes 170 times during the process.

I am using the docmd's below  

                DoCmd.OpenReport "rptreportsmain", acViewPreview, , "(tblstudents.studentid) ='" & strStudent & "'", acHidden

                DoCmd.OutputTo acOutputReport, "rptreportsmain", acFormatPDF, strFileName, 0  

Is there a way of supressing this printing dialog box whilst the loop is running.

Microsoft 365 and Office | Access | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes

6 answers

Sort by: Most helpful
  1. Anonymous
    2012-01-03T14:34:52+00:00

    Dirk

    Thanks for the help.

    Think I will have to leave it there.

    Bruce

    0 comments No comments