Start an Outlook e-mail from Access

P

Petterq

I have a database where we have information about our customers and the
contactpersons within each company.

We have a field for the e-mail adresses. Can I create an procedure that
opens a new mail in Outlook when clicking on the e-mail addresse, and if so,
how is it done?
 
D

Daniel Pineault

If all you want to do is start a new e-mail addressed to the selected
recipient the easiest method would be to do something like:

Application.FollowHyperlink "mailto://" & Me.EmailControlName

where EmailControlName is the name of the control on your form that contains
a valid e-mail address to use as the To: field in the e-mail message.

You can also look at http://www.devhut.net/index.php?lang=en&id=0000000013
for automation procedures if you need to do more advanced things such as
populate the message body, add attachments, etc.
--
Hope this helps,

Daniel Pineault
http://www.cardaconsultants.com/
For Access Tips and Examples: http://www.devhut.net
Please rate this post using the vote buttons if it was helpful.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top