Access Web Apps  «Prev  Next»

Lesson 2 Using hyperlinks on your forms
Objective Create hyperlinks on forms in order to open other forms, applications, or access the Web.

Using Hyperlinks on your Forms

View the series of images below to see how a command button is used to create a hyperlink.
Here is the command button, called cmdOpenClientForm, with its property sheet open.
1) Here is the command button, called cmdOpenClientForm, with its property sheet open. Notice the space for Hyperlink Address and Hyperlink SubAddress entries in the Format tab of the property sheet. The Builder button next to the Hyperlink address is clicked.

This is the default view pof the Insert Hyperlink dialog. It is set up to specify a hyperlink to  a web page. However, in this demonstration we will bge opening an object in the database.
2) This is the default view of the Insert Hyperlink dialog. It is set up to specify a hyperlink to a web page. However, in this demonstration we will be opening an object in the database.

You click the selection "Object in This Database" to get a tree-style view of the objects in your database.
3) You click the selection "Object in This Database" to get a tree-style view of the objects in your database.

The Clients form is selected under Forms.
4) The Clients form is selected under Forms.

After you click OK, the Insert Hyperlink dialog is closed and the Hyperlink SubAddress property is updated.
5) After you click OK, the Insert Hyperlink dialog is closed and the Hyperlink SubAddress property is updated.

Now, when the form is opened, the command button acts just like a hyperlink.
6) Now, when the form is opened, the command button acts just like a hyperlink. When the command button is clicked, the Client form is opened.


Only the Hyperlink SubAddress property is filled

As you can see, when the hyperlink connects to a form in the same database, only the Hyperlink SubAddress property is filled in. If the form is located in another database or you are specifying a website, then the Address property would also be filled in. For instance, if you wanted to take a look at my Web site, then the Address property would be set to https://www.ooportal.com.
You can use hyperlinks with command buttons, images, and Label controls. In the next lesson, you will learn how to create a hyperlink to open a Web site.

Using Hyperlinks On AccessForms - Exercise

Click the Exercise link below to practice creating a hyperlink to open a Web site.
Using Hyperlinks On AccessForms - Exercise