Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

hyperlink as an email?

Status
Not open for further replies.

dgirl1010

Technical User
Jul 14, 2006
20
US
I have a really dumb question, please forgive me if I'm in the wrong forum.

I have a table where I store a list of contacts, including their email addresses. I'd like to be able to just click on the address and have a new email open with that address in the TO line. Is this something I can do with the format of the table, or do I need to do some VBA coding on the form that I have for users to access the information?
 
How about a little code?

Code:
Sub txtEmail_Click()()
strMail = "mailto:" & me.txtEmail
Application.FollowHyperlink strMail 
End Sub
 
Thanks that worked. :) I did have to change the format in the table from hyperlink to text though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top