Changed Outlook Version Causes Code to Fail 
Author Message
 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



Thu, 19 May 2005 06:49:29 GMT  
 Changed Outlook Version Causes Code to Fail
Apparently my research was a little sparse. I found an article in this
group about logging on.

I would like to understand not only the revision that needs to be made,
but why. Can anyone help me out?

-- Randy

Quote:

> 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



Thu, 19 May 2005 07:04:11 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. DBengine.CompactDatabase fails to change mdb version

2. Add-in causes Outlook crash when Outlook launches as a result of email hyperlink

3. Version compatibility broken, but code didn't change

4. Outlook Object Model... Need Version of Outlook

5. VB.NET and Outlook automation - Detect Outlook Version

6. Win98/Installation causes windows to fail

7. ODBC call failed....caused by too many controls????

8. ODBC call failed....caused by too many controls????

9. DLL recompile causes Client to fail

10. Upgrade to winME causes vb program to fail.

11. Complied DLL causes createobject to fail

12. VB COM object causing web site to fail

 

 
Powered by phpBB® Forum Software