paulmcneil
asked on
Outlook instance in Access app won't work in Office 2010
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".
ASKER
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
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
Curious if the objFolders object is set correctly here:
Set objFolder = objNS.GetSharedDefaultFold er(objGLRe cip, 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.
Set objFolder = objNS.GetSharedDefaultFold
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.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Found the solution
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.