Solved

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

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Technology opened people to different means of presenting information, but PowerPoint remains to be above competition. Know why PPT still works today.
Describes a method of obtaining an object variable to an already running instance of Microsoft Access so that it can be controlled via automation.
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 …
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

757 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

16 Experts available now in Live!

Get 1:1 Help Now