Solved

ActiveX component can't create object

Posted on 2009-05-12
9
720 Views
Last Modified: 2012-05-06
I've got a computer that's been running Office 2003. We upgraded Outlook to version 2007. Now my Access VBA code can't communicate with Outlook. Any ideas how to fix this?
Set olApp = GetObject(, "Outlook.Application")
If TypeName(olApp) = "Nothing" Then Set olApp = CreateObject("Outlook.Application")

Open in new window

Nancy-ActiveX.bmp
0
Comment
Question by:GordonPrince
[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
  • 4
  • 3
  • 2
9 Comments
 
LVL 47

Expert Comment

by:apache09
ID: 24370541
Try chaning your settings in Trust Centre
Tools>Trust Centre

Try reducing the security settings in Progammatic Access and Macro Security settings.

0
 
LVL 4

Author Comment

by:GordonPrince
ID: 24371135
Allowed all activity in the Trust Center -- no change. Still the same error message.
0
 
LVL 4

Author Comment

by:GordonPrince
ID: 24371136
I think I've seen some things like this before. The solution might be in the registry, but where is the setting for how Outlook is supposed to be controlled by another program? That's just a hunch I have.
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 47

Expert Comment

by:apache09
ID: 24371273
Usually other applications that access or send mail via Outlook actually use MAPIMAIL.
I would suspect that this has either been disabled after the upgrade or has become corrupt.
You may try renaming your MAPI dlls and or running FIX MAPI

http://www.ctimls.com/Support/KB/Error%20Fixes/Fix_Mapi_error.htm



0
 
LVL 6

Expert Comment

by:BALMUKUND KESHAV
ID: 24371882
Activex Component being used by your Access App is older, either you upgrade your Access too or reinstall outlook 2003.

You can try to change activex component in Access App to latest one.

Best of luck...

Bm Keshav
0
 
LVL 4

Accepted Solution

by:
GordonPrince earned 0 total points
ID: 24373562
I ran into an unrelated message on the user's computer that the Database Splitter wasn't installed. So I looked in Add/Remove Programs and saw that -- for some reason -- not all of Office 2003 was installed (application dropdowns were grey instead of white). After updated the Office 2003 installation to [Run all from my computer] on everything except Outlook (since Outlook 2007 is installed), everything started working.
0
 
LVL 47

Expert Comment

by:apache09
ID: 24379819
Glad you got it sorted.
0
 
LVL 6

Expert Comment

by:BALMUKUND KESHAV
ID: 24500970
Gordon Prince, can you share the solution please.

Bm Keshav
0
 
LVL 4

Author Comment

by:GordonPrince
ID: 24501666
The solution is in my comment from 5/13/2009 above. All of Office 2003 was not installed.
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
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 …

756 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