
Changed Outlook Version Causes Code to Fail
I've written a procedure in an Access database that generates an e-mail
using Outlook. The procedure worked well until we upgraded from Outlook
98 to Outlook 2000. At the same time, we upgraded Exchange Server to
5.5, so I'm not sure what caused the code to terminate.
Single stepping through the code, it works fine until the last string of
this snippet.
Set appMyOutlook = CreateObject("Outlook.Application")
Set nmsMyNamespace = appMyOutlook.GetNamespace("MAPI")
Set msgMyMail = appMyOutlook.CreateItem(olMailItem)
Based on the research I've done to date, I've narrowed it down to one of
two things. Either I need to add a folders collection statement to the
code (which I presume would be a change resulting from the Outlook
upgrade), or the security issues associated with the Outlook E-mail
Security Update are the culprit.
The error message within the Access application reads something to the
effect of:
"There has been an internal application error in Outlook."
The associated error number is -2113732665.
Any help would be appreciated.
-- Randy