Solved

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

Posted on 2013-12-30
5
303 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
  • 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…

910 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now