Solved

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

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

Suggested Solutions

In a multiple monitor setup, if you don't want to use AutoCenter to position your popup forms, you have a problem: where will they appear?  Sometimes you may have an additional problem: where the devil did they go?  If you last had a popup form open…
A simple tool to export all objects of two Access files as text and compare it with Meld, a free diff tool.
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 Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

810 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