Create a command button that creates an e-mail message when clicked

Create a command button that creates an e-mail message when clicked

  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 E-mail Address 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 e-mail address as the ScreenTip.

  10. In the E-mail address box, type an e-mail address. Or click an address from the Recently used e-mail addresses list.

  11. In the Subject box, type the information you want to appear in the Subject field of the e-mail message.

    Note   Some Web browsers and e-mail programs might not recognize the subject line.

  12. Click OK.

    To test the link, right-click the command button, point to Hyperlink on the shortcut menu, and click Open. When you click the hyperlink, Access opens your mail program and creates a new message, with the address and subject filled in.