Solved

Hyperlinks in Access 2003 and 2010

Posted on 2013-01-21
2
603 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 85

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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
If you need a simple but flexible process for maintaining an audit trail of who created, edited, or deleted data from a table, or multiple tables, and you can do all of your work from within a form, this simple Audit Log will work for you.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

623 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