Displaying emails on/from Access Forms

R

Richard Hannah

I have saved emails from Outlook Express with .EML extensions and wish to
display the contents/get at attachements through a control/button on a form.
This wirks fine launching WORD to view documents but Outlook Express ignores
a file name parameter when launched by "SHELL".
 
K

Kevin K. Sullivan

The Application.FollowHyperlink launches the program associated with any
file's extension. Thus:
---------
Dim strFile as String

strFile = "C:\blah\blah\blah.eml"

Application.FollowHyperlink strFile
----------
will open the message in Outlook Express on your machine. It may open a
different program or none at all on a different machine, depending how the
file associations are set.

HTH,

Kevin
 
R

Richard Hannah

Thanks - solves the problem

Kevin K. Sullivan said:
The Application.FollowHyperlink launches the program associated with any
file's extension. Thus:
---------
Dim strFile as String

strFile = "C:\blah\blah\blah.eml"

Application.FollowHyperlink strFile
----------
will open the message in Outlook Express on your machine. It may open a
different program or none at all on a different machine, depending how the
file associations are set.

HTH,

Kevin
 

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