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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open a Msg File from Access

Status
Not open for further replies.

neemi

Programmer
May 14, 2002
519
0
0
GB
Does anyone have any thoughts on which is the best way to open a .msg file from within access.

I have a continuous form with a list of emails attached to a record. On there there is a View email button which the user should be able to press to view the email.

I was think of some how embedding the email to a form so that I can control what the user can do with the email. eg. enable, etc.

Can this be done.

How can I open a msg file from within access? Whether this is in another form or just the msg file alone.

Help and thoughts appreciated.

Cheers,
Neemi
 
Dim objOutlook As Outlook.Application
Dim objOutlookMsg As Outlook.MailItem

Set objOutlook = New Outlook.Application
Set objOutlookMsg = objOutlook.CreateItemFromTemplate (<FilePath>)

You can access all features of the message from this objOutlookMsg object. If you try to access the e-mail addresses (from, to, cc, etc) then you'll see an Outlook security warning.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top