Others

How to Change Hyperlink Display Text for Multiple Records in Microsoft Access

Steve KSteve K Oct 29, 2026 869 views

Question details

The user needs to change the display text of hyperlink fields across multiple records in Microsoft Access, replacing full image paths with a clean, simple label like 'View'.

How to Change Hyperlink Display Text for Multiple Records in Microsoft Access
Product
Microsoft Access
Device & OS
not provided
Scenario
Managing a database form where hyperlink fields display long image or file paths instead of simple text labels.
Observed behavior
The hyperlink field displays the full target path instead of a custom display text, and updating this across many records simultaneously is difficult because the field also stores the target path.
Before you start

Before applying VBA code or running update queries on your database schema, ensure you have created a backup copy of your Microsoft Access database to prevent accidental data loss.

Solution 1Recommended

Use a Form Button and Hidden Text Box

Create a clean user interface by using a button labeled 'View' and a hidden text box to trigger the hyperlink via VBA.

Instead of trying to format the hyperlink field directly across thousands of records, you can bypass the display issue entirely on the form level. By using a standard command button, you provide a uniform 'View' label for every record, while a hidden control handles the actual path data.

1
Open Form in Design View

Right-click your target form in the Navigation Pane and select 'Design View'.

2
Add a Hidden Text Box

Add a new text box to the form and bind it to your hyperlink field. In the Property Sheet, set its 'Visible' property to 'No' so it remains hidden from users.

3
Insert a Command Button

Drag a Command Button onto the form from the Design ribbon. Change its 'Caption' property to 'View' (or your preferred display text).

4
Add VBA Code to the Button

Select the button, open the Property Sheet, click the 'Event' tab, and select '[Event Procedure]' for the 'On Click' event. Click the builder button (...) to open the VBA editor.

5
Execute the Hyperlink

Inside the click event, add the following code: Application.FollowHyperlink Me.YourHiddenTextBoxName (make sure to replace 'YourHiddenTextBoxName' with the actual name of your hidden text box).

6
Save and Test

Save the form, switch to Form View, and click the 'View' button to ensure the hyperlink opens correctly.

Use a Form Button and Hidden Text Box
Uniform Display: This method ensures that every record displays a neat 'View' button, regardless of how long or complex the underlying hyperlink path is.
Free Microsoft Office alternative

Looking for a Lightweight Alternative for Word, Excel, and PowerPoint?

While Microsoft Access is powerful for specialized database management, most everyday tasks revolve around documents, spreadsheets, and presentations. WPS Office offers a free, highly compatible alternative to Microsoft Word, Excel, and PowerPoint, providing a seamless experience for your everyday office needs without heavy subscription fees.

  1. 1. Download the Installer: Visit the official WPS Office website and click the Free Download button for your operating system.
  2. 2. Install the Software: Run the downloaded installer file and follow the simple on-screen instructions to set up WPS Office.
  3. 3. Open and Edit Files: Launch WPS Office and instantly open your existing Word, Excel, or PowerPoint files without losing formatting.
Free and lightweight office suite for Windows, Mac, and LinuxHigh compatibility with Microsoft Office formats (.docx, .xlsx, .pptx)Familiar, tabbed user interface for an easy transitionBuilt-in PDF editing, conversion, and annotation tools
microsoft office alternative - wps office

Frequently Asked Questions

Why does Microsoft Access show the full path instead of the hyperlink display text?

In Microsoft Access, a hyperlink field actually stores up to four parts separated by the '#' character (Display Text#Address#SubAddress#ScreenTip). If the display text portion is empty or wasn't formatted correctly when the data was imported or entered, Access defaults to showing the raw address or full file path.

Can I run an update query to change the display text for all hyperlink records?

Yes, you can use an Update Query to modify the hyperlink field format in bulk. You would update the field using a string concatenation expression like: "View#" & [YourHyperlinkField] & "#". This injects the word 'View' as the display text portion of the underlying hyperlink string.

How do I extract just the URL or path from an Access hyperlink field?

Because the hyperlink field stores multiple parts delimited by '#', you can use the HyperlinkPart function in a query or VBA. For example, HyperlinkPart([YourField], acAddress) will return just the URL or file path portion, ignoring the display text and sub-address.