Solved

ActiveX component can't create object

Posted on 2009-05-12
9
716 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
  • 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
 
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
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 
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

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

Suggested Solutions

Resolve DNS query failed errors for Exchange
If you don't know how to downgrade, my instructions below should be helpful.
In Microsoft Access, when working with VBA, learn some techniques for writing readable and easily maintained code.
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…

758 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

19 Experts available now in Live!

Get 1:1 Help Now