Solved

Turning Data into Clickable Hyperlinks

Posted on 2014-01-19
4
516 Views
Last Modified: 2014-01-20
I have a field with URLs.  It there a way for it to appear as a clickable hyperlink in Access, either on a form or when viewing the actual table/query?
0
Comment
Question by:daisypetals313
  • 2
4 Comments
 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 39792739
<It there a way for it to appear as a clickable hyperlink>
"Appear" as click-able, ...or actually be click-able?

You can create a "Hyperlink" datatype field in Access and they will be clickable in the table and any form you make from it.

You can also insert this field into a form control and set the IsHyperlink Property to true.
You can use code like this on the controls on click event:
Application.followhyperlink txtYourHyperlinkField
http://msdn.microsoft.com/en-us/library/office/aa221236%28v=office.11%29.aspx

JeffCoachman
0
 
LVL 74

Accepted Solution

by:
Jeffrey Coachman earned 500 total points
ID: 39792743
...anther note.

though using a hyperlink field does work, the Hyperlink datatype does have some issues.
(cannot convert to SQL Server, the storage method, what is displayed, ...etc)

Most developer will store this data as text, then use FollowHyperlink.

But to be fair, let's see what other experts may post.

JeffCoachman
0
 
LVL 34

Expert Comment

by:PatHartman
ID: 39792906
I don't use the Hyperlink data type because it isn't supported in SQL Server.  I set the formatting to FormatAsHyperlink = Always and use the FollowHyperlink method.   I've used it with Word, Excel, PDF, PP, etc documents as well as URL's.  To use the technique with documents, the type needs to be registered so that Windows knows what program to invoke to open the document type.  You would only have trouble with this if you had non-standard types or if for some reason you wanted something other than Excel to open an .xls/.xlsx type.
0
 

Author Closing Comment

by:daisypetals313
ID: 39795156
I tried both of these methods and they worked
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now