Solved

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

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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

AutoNumbers should increment automatically, without duplicates.  But sometimes something goes wrong, and the next AutoNumber value is a duplicate.  This article shows how to recover from this problem.
In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
In Microsoft Access, learn how to use Dlookup and other domain aggregate functions and one method of specifying a string value within a string. Specify the first argument, which is the expression to be returned: Specify the second argument, which …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

726 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