Solved

Hyperlinks in Access 2003 and 2010

Posted on 2013-01-21
2
595 Views
Last Modified: 2013-01-22
Dear Experts, I am updating an Access application so it operates in both 2003 and 2010. We have a number of other applications that only work in 2003, so our PCs have both versions installed, which will continue to be a problem until I can complete the migration to 2010.

The form in question is based on a query, which calculates a string for the UNC textbox as...
 "#" & "\\server\share\" & LocalLocation & "#"
...which gives...
#\\server\share\folder1\folder2\file.pdf#

The textbox Is Hyperlink property is set to Yes and in Access 2003 this works fine, users happily click on the resulting hyperlink and their file opens.

However in Access 2010, only the LocalLocation is shown and hyperlinked eg folder1\folder2\file.pdf and the \\server\shared\ component ignored, and of course it fails. When I check the textbox in Access 2010 the Is Hyperlink property is still Yes, but the new Display As Hyperlink property is "If Hyperlink". When I change this to "Always", it works as expected.

So, is there anyway I can change this field or the calculation in the query in Access 2003, such that the hyperlink will be correctly interpreted in Access 2010?

Your thoughts and comments much appreciated
...Terry
0
Comment
Question by:terencino
2 Comments
 
LVL 84

Accepted Solution

by:
Scott McDaniel (Microsoft Access MVP - EE MVE ) earned 500 total points
ID: 38804927
I've never used the Hyperlink property. Instead, you can use the Application.FollowHyperlink method, which should open your pdf file. To do that, just put the full path to the object in the textbox or label, and use FollowHyperlink in the click event of the object. You can even format the text as Blue and underline it (or whatever makes it look right).
0
 
LVL 16

Author Closing Comment

by:terencino
ID: 38805013
Perfect solution thank you LSMConsulting! Minimal change to the Access 2003 database and looks the same to users.
Thanks again!
0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question