Reduce PDF Hyperlink Security Warnings in Microsoft Access
Question details
The user wants to open PDF files from Microsoft Access without repeatedly encountering a security warning.

- Product
- Microsoft Access
- Device & OS
- not provided
- Scenario
- A database contains links to PDF files that users need to open.
- Observed behavior
- Opening a PDF through an Access hyperlink may display a security warning, even when links to other file types do not.
Confirm that the PDF paths point to files you trust and that a PDF reader is installed. To run the VBA example, open the database from a trusted location or enable its content only if you trust its source.
Open PDF paths from a text field using FollowHyperlink
Use this approach to open PDFs from a form without storing their locations in an Access Hyperlink field.
Application.FollowHyperlink opens the location using the system's associated application. Depending on Access and system security settings, it may still display a warning.
In the table's Design View, create a Short Text field named PDFPath and enter the full path to a trusted PDF for each record.
Open the form in Design View and add a button. Make sure the form's record source includes the PDFPath field.
Select the button, open its Property Sheet, and on the Event tab set On Click to [Event Procedure]. Click the build button (...) to open the VBA editor.
Inside the button's Click procedure, add: If Not IsNull(Me!PDFPath) Then Application.FollowHyperlink CStr(Me!PDFPath)
Save the form, switch to Form View, select a record with a valid PDF path, and click the button. Check whether the PDF opens and whether a warning still appears.

Open PDF files with WPS Office
WPS Office is a free, lightweight Office alternative with a familiar interface for opening PDFs and working with common Office files. It can help you move document work between suites, but it does not change Microsoft Access security warnings or run Access databases.

Frequently Asked Questions
Will FollowHyperlink always remove the PDF warning?
No. Application.FollowHyperlink avoids using a Hyperlink field, but Access or the operating system may still show a security prompt depending on its settings and the file location.
What should I put in the PDFPath field?
In the table's PDFPath Short Text field, enter the full location of the trusted PDF file. The path must be accessible to the user who clicks the form button.
Why does the form button not run its VBA code?
Check the button's Property Sheet and confirm that On Click is set to [Event Procedure]. Access may also block VBA in an untrusted database; enable content only when you trust the database.
Can I use WPS Office to stop the Access warning?
No. WPS Office can open PDFs, but it does not change Microsoft Access security settings. Use the Access form and text-field approach to test an alternative way of opening the file.




