Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Hyperlinks in Access 2003 and 2010

Posted on 2013-01-21
2
Medium Priority
?
604 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 2000 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
Microsoft Access is a place to store data within tables and represent this stored data using multiple database objects such as in form of macros, forms, reports, etc. After a MS Access database is created there is need to improve the performance and…
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…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

715 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