Create a command button that's a hyperlink to an existing file or Web page

Create a command button that's a hyperlink to an existing file or Web page

  1. Open a form in Design view.

  2. If the Control Wizards tool in the toolbox is pressed in, click it to turn off the Control Wizard.

  3. In the toolbox, click the Command Button tool Command Button control.

  4. On the form, click where you want to place the command button.

  5. Make sure the command button is selected, and then click Properties on the toolbar to open the property sheet for the command button.

  6. In the HyperlinkAddress property, click the Build button .

  7. In the Insert Hyperlink dialog box, click Existing File or Web Page under Link to.

  8. In the Text to display box, type the display text for the hyperlink. Microsoft Access automatically displays the value of the command button's Caption property in the box.

  9. Click ScreenTip, and type the text you want to appear when the user rests the mouse pointer on the hyperlink. If you leave the ScreenTip text box blank, Access displays the hyperlink address (and subaddress) as the ScreenTip.

  10. Specify the file or Web page you want to go to in one of these ways:
  11. To go to a specific location in an HTML file or to an object in a Microsoft Access database (.mdb) or a Microsoft Access project (.adp), click Bookmark. Click the bookmark or object you want in the list, and then click OK.

  12. Click OK in the Insert Hyperlink dialog box.

    To test the link, right-click the command button, point to Hyperlink on the shortcut menu, and then click Open.