Solved

How can I display "Some text" on a form with a hyperlink to a web page?

Posted on 2011-02-21
3
274 Views
Last Modified: 2012-05-11
I have a form with a field the stores a http address to a web site. I do not want to display the http address but the text " Open site" that would open the site when clicked. How can I do this?
0
Comment
Question by:seanlhall
[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
3 Comments
 
LVL 10

Expert Comment

by:VTKegan
ID: 34947030
Make a label on a form that says Open Site, and then in the Onclick event of the label, you can make it follow the hyperlink.
0
 
LVL 10

Accepted Solution

by:
VTKegan earned 500 total points
ID: 34947054
Create the Label... Label1.
Set the Caption = "Open Site"
Set the OnClick Event to something like this:


Private Sub Label1_Click()
Application.FollowHyperlink Me.httpAddress
End Sub
0
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 34947183

You can add or edit the displaytext part of a hyperlink field by right-clicking a hyperlink in a table, form, or report, pointing to Hyperlink on the shortcut menu, and then typing the display text in the Text to display box.

see this link

HyperlinkPart Method
http://msdn.microsoft.com/en-us/library/aa221344%28office.11%29.aspx
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
This article describes two methods for creating a combo box that can be used to add new items to the row source -- one for simple lookup tables, and one for a more complex row source where the new item needs data for several fields.
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
In Microsoft Access, learn how to “cascade” or have the displayed data of one combo control depend upon what’s entered in another. Base the dependent combo on a query for its row source: Add a reference to the first combo on the form as criteria i…

749 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