Link to home
Start Free TrialLog in
Avatar of terencino
terencinoFlag for Australia

asked on

Hyperlinks in Access 2003 and 2010

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
ASKER CERTIFIED SOLUTION
Avatar of Scott McDaniel (EE MVE )
Scott McDaniel (EE MVE )
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of terencino

ASKER

Perfect solution thank you LSMConsulting! Minimal change to the Access 2003 database and looks the same to users.
Thanks again!