Output Report to PDF Quit Working; Worked for Years Until Now (Microsoft Access)

David P 25 Reputation points
2026-01-21T14:48:17.1333333+00:00

I have an Access application that contains a command button to output a report to PDF. It has worked for 4-5 years and suddenly it no longer works. I get a message that says "Formatting page... press CTRL/BRK to stop". That continues until the OS finally reports that Access is not responding.

I use the Access app on two computers, one is Win 10 and one is Win 11, and I now have the same problem on both computers.

I do not get an Access error message. and I have modified the sub just by deleting a comment line, saved the sub and re-compiled it. No errors.

Help will be greatly appreciated.

David

Microsoft 365 and Office | Access | Development
{count} vote

Answer accepted by question author
  1. Ron McCarry 75 Reputation points
    2026-01-28T21:32:30.6266667+00:00

    I ran into reports to PDF years ago (2019) and have been doing the following.

    Echo False

    DoCmd.OpenReport "ReportName", acViewPreview

    DoCmd.SelectObject acReport, "ReportName"

    DoCmd.OutputTo acOutputReport, puchaseOrderReportName, acFormatPDF, "FullNameAndPath.PDF"

    DoCmd.Close acReport, "ReportName"

    Echo True


3 additional answers

Sort by: Most helpful
  1. DBG 11,611 Reputation points Volunteer Moderator
    2026-01-21T18:31:29.2033333+00:00

    In case the file size got too big, try doing a C&R as well.

    0 comments No comments

  2. David P 25 Reputation points
    2026-01-21T17:48:12.2466667+00:00

    On the Win 10 computer, set the default printer to Microsoft PDF.

    0 comments No comments

  3. Q&A Assist
    2026-01-21T14:48:29.8566667+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    It sounds like you are experiencing a common issue with Microsoft Access when trying to output reports to PDF. Since this functionality has worked for several years and suddenly stopped, there are a few troubleshooting steps you can consider:

    1. Check for Corruption: Sometimes, the Access database can become corrupted. You can try compacting and repairing the database to see if that resolves the issue.
    2. Update Access: Ensure that both your Windows 10 and Windows 11 systems have the latest updates for Microsoft Access. Sometimes, updates can fix bugs or issues that may cause problems with features like PDF output.
    3. Test with a New Report: Create a simple test report to see if the issue persists with a new report. If it works, the problem may be with the specific report you are trying to output.
    4. Check Printer Settings: Since the PDF output may rely on printer settings, ensure that your default printer is set correctly and that there are no issues with the printer drivers.
    5. Registry Settings: If the problem continues, you may want to check if any registry settings related to Access or PDF output have changed. However, be cautious when modifying the registry.

    If these steps do not resolve the issue, you might consider reaching out to Microsoft support for more detailed assistance.


    References:


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.