RDO object gives an error "Activex component cant create object". Explain?

I tried the code below which worked fine on my friends machine but is giving an error on my machine.

'Add a reference to Microsoft Remote Data Objects 2.0
Private Sub Form_Load()
    Dim en As rdoEnvironment
    Set en = rdoEngine.rdoEnvironments(0) 'Error Line.
    MsgBox "Successful!"    'Not reached
End Sub

I tried the following things.
1. Checked the dependency information for msrdo20.dll.
    Everything was fine.
2. Replaced the DLL from my frnds machine and
   reregistered it.    Still not working.

Please help..
mohan_nsrkAsked:
Who is Participating?
 
Éric MoreauSenior .Net ConsultantCommented:
Which error? VB5 or VB6? If VB5, you need the enterprise edition.

Have a look at http://support.microsoft.com/default.aspx?scid=kb;en-us;Q177799
0
 
mdouganCommented:
RDO is more than just a single DLL.  If you want to run a VB program that does database access then generally you have to install the Microsoft Data Access Components first.  This is usually distributed by the program's Installation program by including the MDAC_TYP.EXE  as part of the installation.  This is a Self-Extracting Installation program for the Microsoft Data Access Components.  I think that MDAC includes RDO as well as ADO and DAO components.....
0
Cloud Class® Course: Ruby Fundamentals

This course will introduce you to Ruby, as well as teach you about classes, methods, variables, data structures, loops, enumerable methods, and finishing touches.

 
mdouganCommented:
if your machine already has MDAC on it, then you might need to see what version you have.  It's possible that your friend has upgraded to a more recent version of MDAC that includes all of RDO v 2.0, and perhaps your version has an earlier version of RDO.  Again, bringing over just one file wont be enough.
0
 
mohan_nsrkAuthor Commented:
I already have vb5 enterprise Edition and i tried installing MDAC 2.6 but its still giving me the same error.

please advise.
0
 
Éric MoreauSenior .Net ConsultantCommented:
have you tried vb5cli.exe?

mdac won't help because it doesn't include RDO.
0
 
mohan_nsrkAuthor Commented:
Can you please send some details about this vb5cli.exe.
I tried searching it on microsofts' site but couldn't find it.
0
 
Éric MoreauSenior .Net ConsultantCommented:
0
 
Éric MoreauSenior .Net ConsultantCommented:
Any progress?
0
 
Éric MoreauSenior .Net ConsultantCommented:
This question appears to be abandoned. A question regarding it will be left in the CleanUp
area; if you have any comment about the question, please leave it here.

Unless there is objection or further activity, one of the moderators will be asked to accept the comment
of <emoreau>.

The link to the Community Support area is:
http://www.experts-exchange.com/jsp/qList.jsp?ta=commspt

DO NOT ACCEPT THIS COMMENT AS AN ANSWER.
0
 
NetminderCommented:
0
 
vdevaraoCommented:
Hi
 I'm also having the same RDO problem with Vb6.0 professional.

I did referenced RDO2.0 object library. reregistered the RDO20.dll, but still gets the error when i say
Dim cn As New rdo.rdoConnection as Runtime error : 429 "Active X  Can't create Object".

Any suggestions please
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.