Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / July 2005

Tip: Looking for answers? Try searching our database.

How to open a .msg file in Access

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Eric van Nierop - 16 Jul 2005 18:04 GMT
In Acces I made a program to save selected Emails from Outlook2000 to
specified folders on my disk.
It makes a .msg file from the Email, using Subject a a Filename.
For each Email I also make a record in a n Access Table.
Now I want to retrieve Emails in a Form by selecting a record in that table.
What is de VB code in Access to open any .msg file as an Email, just like
when I dubbelclick in Explorer on de msg file?
Thanks for any reaction.
Michael Bauer - 17 Jul 2005 09:07 GMT
Eric, in VB you can use the Win32 API ShellExecute. If you need access
to the opened item however I´d use the Outlook function
CreateItemFromTemplate.

Signature

Viele Gruesse / Best regards
Michael Bauer - MVP Outlook

> In Acces I made a program to save selected Emails from Outlook2000 to
> specified folders on my disk.
[quoted text clipped - 4 lines]
> Email, just like when I dubbelclick in Explorer on de msg file?
> Thanks for any reaction.
Lynn - 31 Jul 2005 03:42 GMT
eric,
i would like to adopt your solution too.
can you post the code to me?
thanks

> In Acces I made a program to save selected Emails from Outlook2000 to
> specified folders on my disk.
[quoted text clipped - 4 lines]
> when I dubbelclick in Explorer on de msg file?
> Thanks for any reaction.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.