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
Solved

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

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

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Regardless of which version on MS Access you are using, one of the harder data-entry forms to create is one where most data from previous entries needs to be appended to new records, especially when there are numerous fields and records involved.  W…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Familiarize people with the process of utilizing SQL Server stored procedures 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 Micr…
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.

839 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