Lesson 11.8. Using Hyperlink Fields
Figure 11-14. The Insert Hyperlink dialog box.
In this lesson, you will learn about how to use hyperlinks in Microsoft Access. A hyperlink can point to any file on your computer, on the network, or even on a Web page on the Internet. Whenever you click on a hyperlink, you jump to the hyperlink's destination (if it's available). A hyperlink is usually indicated by colored and underlined text. If you have ever been on the World Wide Web, you've used hyperlinks all the time to move between different Web pages.
Microsoft recognized the importance of the Internet and thus introduced the new hyperlink field type in Access 2003. You can use the hyperlink field to store clickable links to files on your computer or network or to Web pages on the Internet.
In this lesson you will learn how to use to create links that point to files on your network or on the Internet.
Select the tblTours table and click the Design button.
First we need to add a hyperlink field to this table.
Click the first blank Field Name row and type Link. Click the Data Type list arrow and select Hyperlink from the list.
You've just created a hyperlink field!
Save your changes and then click the View button on the toolbar to display the table in Datasheet view.
Let's try adding a hyperlink to the Western Canada record.
Click in the Link field for the Western Canada record and click the Insert Hyperlink button on the toolbar.
Tip: Another way to insert a hyperlink is to select Insert
The Insert Hyperlink dialog box appears, as shown in Figure 11-14. This is where you will specify the name and location of the file or Web page you want to add as a hyperlink. If you know the location and name of the file or Web address, you can type it directly in the dialog box; otherwise, you can use the Browse button to locate the file.
Click the Browse for File button.
The Link to File dialog box appears and displays a list of files that you can use as the destination for your hyperlink.
Browse to your Practice folder, then find and double-click the Canada Memo document.
The Link to File dialog box closes, and the name and location of the Canada Memo is added to the Address box.
The dialog box closes and you return to the datasheet. Notice that the text "Canada Memo.doc" appears blue and underlined, signifying that it's a hyperlink. Let's see how our new hyperlink works.
Click the Canada Memo.doc hyperlink.
You immediately jump to the hyperlink's destinationin this case, the Canada Memo document.
Note: If a dialog box appears, warning you that hyperlinks can be harmful to your computer and data, click Yes to continue.
Close Microsoft Word without saving any changes.
You should be back in Microsoft Access, looking at the tblTours datasheet.
Once you create a hyperlink, you can easily edit it to change its title or target, copy it, or delete it by right-clicking the hyperlink.
Right-click the Canada Memo.doc hyperlink and select Hyperlink from the shortcut menu.
A shortcut menu with the most frequently used hyperlink commands appears. Here you could select "Edit Hyperlink" to change the hyperlink's target or "Display Text" to edit the hyperlink's title. Your hyperlink is fine the way it is, so close the shortcut menu.
Click anywhere in the datasheet to close the shortcut menu. Close the tblTours table without saving any changes.
TO CREATE A HYPERLINK FIELD:
DISPLAY THE TABLE IN DESIGN VIEW.
CREATE A NEW FIELD TO STORE THE HYPERLINKS.
CLICK THE NEW HYPERLINK FIELD'S DATA TYPE BOX, CLICK THE LIST ARROW, AND SELECT HYPERLINK.
SAVE THE TABLE.
TO INSERT A HYPERLINK:
SELECT THE HYPERLINK FIELD AND CLICK THE INSERT HYPERLINK BUTTON ON THE TOOLBAR.
SELECT THE HYPERLINK FIELD AND SELECT INSERT
EITHER SELECT A FILE YOU WANT (USE THE BROWSE BUTTON TO HELP YOU LOCATE THE FILE) OR TYPE A WEB ADDRESS FOR THE HYPERLINK'S DESTINATION AND CLICK OK.
TO EDIT A HYPERLINK: