473,418 Members | 4,041 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,418 software developers and data experts.

ActiveX Component can't create object

Hi. I have a routine (BldEmail) that is causing an error on my user's
PC but not on mine. HELP!!! I have to fix this tonight.

She reports an error with err.number=429 and the error message "ActiveX
Component can't create object" out of my BldEmail routine.

The routine is called to dynamically build an email note and put it in
the Drafts folder. It uses late binding and has the following code:

Dim objOutlook As Object
Dim objNameSpace As Object
Dim objDrafts As Object
Dim objItem As Object
Dim strBody As String

Set objOutlook = CreateObject("Outlook.Application")
Set objItem = objOutlook.CreateItem(0) 'olMailItem = 0

'Get the MAPI reference ...
Set objNameSpace = objOutlook.GetNameSpace("MAPI")

'Pick up the Drafts folder ...
Set objDrafts = objNameSpace.GetDefaultFolder(12)

'Set the mail item properties ...
objItem.To = strEmail
objItem.Subject = "CDSP Dog Registration Acknowledgement (" & _
lngDogRegNbr & ")"
since the error message says that it "can't create an object" I'm
guessing that the problem is right up at the top when it creates the
instance of Outlook.Application.

The user is running Access 2000 and Outlook 2003 in Windows XP Home
Edition. I'm running Access 2003 (created db as Access 2000) with
Outlook 2003 and Windows XP Home Edition. The routine works on my PC.
Why doesn't it work on my user's PC?

Thanks.

Regards,
SueB

*** Sent via Developersdex http://www.developersdex.com ***
Nov 15 '05 #1
2 11077
Check out this KB article;

http://support.microsoft.com/kb/q244264/

which might help you troubleshoot the problem.

Susan Bricker wrote:
Hi. I have a routine (BldEmail) that is causing an error on my user's
PC but not on mine. HELP!!! I have to fix this tonight.

She reports an error with err.number=429 and the error message "ActiveX
Component can't create object" out of my BldEmail routine.

The routine is called to dynamically build an email note and put it in
the Drafts folder. It uses late binding and has the following code:

Dim objOutlook As Object
Dim objNameSpace As Object
Dim objDrafts As Object
Dim objItem As Object
Dim strBody As String

Set objOutlook = CreateObject("Outlook.Application")
Set objItem = objOutlook.CreateItem(0) 'olMailItem = 0

'Get the MAPI reference ...
Set objNameSpace = objOutlook.GetNameSpace("MAPI")

'Pick up the Drafts folder ...
Set objDrafts = objNameSpace.GetDefaultFolder(12)

'Set the mail item properties ...
objItem.To = strEmail
objItem.Subject = "CDSP Dog Registration Acknowledgement (" & _
lngDogRegNbr & ")"
since the error message says that it "can't create an object" I'm
guessing that the problem is right up at the top when it creates the
instance of Outlook.Application.

The user is running Access 2000 and Outlook 2003 in Windows XP Home
Edition. I'm running Access 2003 (created db as Access 2000) with
Outlook 2003 and Windows XP Home Edition. The routine works on my PC.
Why doesn't it work on my user's PC?

Thanks.

Regards,
SueB

*** Sent via Developersdex http://www.developersdex.com ***


Nov 15 '05 #2
Wolf,

Thanks, so much, for your reply to my posted question. After reading
the article, I'm sure that there is a problem with user's install of
Outlook. I'll start with the 'Detect and Repair' option in Outlook.
Maybe that will fix it.

Regards,
Sue

Regards,
SueB

*** Sent via Developersdex http://www.developersdex.com ***
Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: brazilnut52 | last post by:
I am going to outline the steps I go through to produce the problem. Hopefully this will help you understand the problem better I have created a simple COM DLL in .NET by using the COM class...
2
by: Berata | last post by:
Hello all, in VB6 we were able to create ActiveX-DLL's (In Process Components) and ActiveX-Exe's (Out of Process Components). We habe build up an application that exists of an main module...
4
by: Ismadi bin Nawang | last post by:
how to solve this problem. "activeX component can't create object" its happened when i want to create a new form in ms access.
1
by: John Gabriel | last post by:
I have set up a website and am testing ASPs. I have created a very simple ActiveX component with two interfaces: AboutBox() - displays About details calcpi() - returns 3.14159 Here is my...
1
by: Mehr H | last post by:
I have been working on this for several days and am still have had no success in achieving this. Pleae help. It seems that documentation for this is very limited. I have looked in several books and...
2
by: W. Broersen | last post by:
I want to use Outlook.Application, but I donot get further. Dim objOLApp As Outlook.Application objOLApp = CreateObject("Outlook.Application") Everytime I'll get the following error: Cannot...
6
by: Steve Richter | last post by:
I am getting error in a vbscript: ActiveX component cant create object: Excel.Application. The vbscript code is: Dim objExcel Set objExcel = CreateObject("Excel.Application") I am pretty...
3
by: Jeffery Franzen | last post by:
Anyone know where the documentation is regarding Activex controls in asp web forms? I'm using VS.NET 2002 enterprise and am trying to use Activex controls in vb.net web form app. I do the add...
1
by: Rocio | last post by:
I have a windows app. written in VB6, now we need to expose some of its classes through a web service. I am only able to expose the classes using late binding becasue that's the way the original...
6
by: hufaunder | last post by:
I have an ActiveX component that I want to use in a library that I am writing. As a first test I used the ActiveX component in a windows form application. Adding the component created: Ax.dll...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.