Solved

Outlook instance in Access app won't work in Office 2010

Posted on 2013-12-30
5
309 Views
Last Modified: 2014-01-04
We have an Access 2007 accdb whihc has vba code to instantiate Outlook for sending emails as part of a process. Since we upgraded to Office 2010, the vba code that instantiates Outlook raises the error "Could not open ....mailbox. do you have the rights...etc".
0
Comment
Question by:paulmcneil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
5 Comments
 
LVL 84
ID: 39746788
That's odd ... generally that would cause the same issue on the either platform.

Can you show the code you're using to work with Outlook.

FWIW, I've taken to using the vbMAPI libraries from www.everythingaccess.com when I must work with Outlook. It is very easy to use and deploy, doesn't require any 3rd party utilities/libraries, and works flawlessly every time. I have no interest in the company other than as a satisfied user.
0
 

Author Comment

by:paulmcneil
ID: 39746862
Scott, thanks. Here's the code. The error that it could not open the mailbox is raised by:

For Each aFolder In objFolder.Folders

FYI, I found this advice for setting a security certificate for Outlook,  but it did not fix the problem:
http://answers.microsoft.com/en-us/office/forum/office_2007-customize/outlook-2007-vba-code-wont-run-in-windows-7/ebc3c507-896c-4b5e-8b06-5c199eefaa52
Function-BuildSRR.txt
0
 
LVL 84
ID: 39747016
Curious if the objFolders object is set correctly here:

Set objFolder = objNS.GetSharedDefaultFolder(objGLRecip, 6)

Can you set a breakpoint and determine if that is being set properly?

And - again - this sort of issues with permissions was the entire reason I purchased the vbMAPI library. Saved me tons of time and work.
0
 

Accepted Solution

by:
paulmcneil earned 0 total points
ID: 39747022
I apologize. My initial question was wrong. The err was on the line

Set objNewMessage = New Redemption.SafeMailItem

The solution was to download the latest version of Redemption.dll and register it.
0
 

Author Closing Comment

by:paulmcneil
ID: 39755830
Found the solution
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As with any other System Center product, the installation for the Authoring Tool can be quite a pain sometimes. This article serves to help you avoid making these mistakes and hopefully save you a ton of time on troubleshooting :)  Step 1: Make sur…
As tax season makes its return, so does the increase in cyber crime and tax refund phishing that comes with it
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
The view will learn how to download and install SIMTOOLS and FORMLIST into Excel, how to use SIMTOOLS to generate a Monte Carlo simulation of 30 sales calls, and how to calculate the conditional probability based on the results of the Monte Carlo …

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question