Solved

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

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

Expert Comment

by:Rey Obrero
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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Join & Write a Comment

In the previous article, Using a Critera Form to Filter Records (http://www.experts-exchange.com/A_6069.html), the form was basically a data container storing user input, which queries and other database objects could read. The form had to remain op…
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…
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…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

744 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

11 Experts available now in Live!

Get 1:1 Help Now