Solved

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

Posted on 2011-02-21
3
275 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
The Windows Phone Theme Colours is a tight, powerful, and well balanced palette. This tiny Access application makes it a snap to select and pick a value. And it doubles as an intro to implementing WithEvents, one of Access' hidden gems.
Familiarize people with the process of utilizing SQL Server views from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Microsoft Access…
In Microsoft Access, learn different ways of passing a string value within a string argument. Also learn what a “Type Mis-match” error is about.

734 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