PDF Security & Access Issues

Reduce PDF Hyperlink Security Warnings in Microsoft Access

Kushani NimanthikaKushani Nimanthika Nov 22, 2026 868 views

Question details

The user wants to open PDF files from Microsoft Access without repeatedly encountering a security warning.

Reduce PDF Hyperlink Security Warnings in Microsoft Access
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.
Before you start

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.

Solution 1Recommended

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.

1
Store the PDF path

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.

2
Add a form button

Open the form in Design View and add a button. Make sure the form's record source includes the PDFPath field.

3
Create the click event

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.

4
Open the stored path

Inside the button's Click procedure, add: If Not IsNull(Me!PDFPath) Then Application.FollowHyperlink CStr(Me!PDFPath)

5
Test the button

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 paths from a text field using FollowHyperlink
Warnings may still appear: This method avoids an Access Hyperlink field but does not guarantee that all security prompts will disappear. Do not disable warnings globally without understanding the risks.
Free Microsoft Office alternative

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.

Open PDF files in WPS OfficeCompatible with common Microsoft Office formats, including DOCX, XLSX, and PPTXFamiliar tools make it easier to move everyday document work to WPSFree and lightweight for routine document tasks
microsoft office alternative - wps office

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.