Solved

Run-Time error 2147221164 "Class not registered" on Recordset.open

Posted on 2002-03-27
11
2,004 Views
Last Modified: 2012-08-13
Can anyone help me with this error. It occurs with an ADO2.7 recordset object and its Open method.

I never recieved it before. I beleive the cause is a bad unistall program that removed/modified some dlls and key entries.

I've been trying to use rededit and MDACs ComChecker to see what the problem is, if any with the windows registry and/or dll files. But my Windows knowledge is limited.

Thanks Experts.
0
Comment
Question by:jponce
11 Comments
 
LVL 16

Expert Comment

by:Richie_Simonetti
ID: 6900544
Open your project, go to project references and see if something has a "MISSING:" string.
You could see this link what it is strange by itself pointing to dao error, not ado!
http://www.delphi32.com/info_facts/faq/faq_894.asp

see this also:
http://www.freevbcode.com/ShowMessage.asp?ID=4434
0
 
LVL 4

Expert Comment

by:trkcorp
ID: 6900634
If you are sure the correct mdac_typ.exe was run...
If it is indeed a DAO error like Richie says, you may have a reference to DAO "higher" than your reference to ADO and somewhere in your code the declaration of the recordset is non-explicit (like "Dim rs As Recordset" as opposed to "Dim rs As ADODB.Recordset").  If so it will default to DAO instead of ADO and may be causing the problem.
Just a thought.  Hope it helps, it sure won't hurt...
0
 
LVL 44

Expert Comment

by:bruintje
ID: 6901149
or maybe this KB could be of any clarification

http://support.microsoft.com/default.aspx?scid=kb;EN-US;q141294

don't know if ti's mentioned in the thread of the link Richie posted (i'm a very lazy reader)

:O)Bruintje
0
 

Author Comment

by:jponce
ID: 6903014
Thanks all for the tips. I looked in the references and there is no Missing string. I also check how I instatiated the Recordset object and I used the ADODB.Recordset.

I've kept working with ComChecker. I've fixed all the errors and warnings. I still have the same problem.

Can I reinstall MDACs? I have tried but there was no change. Should I remove it?

Thanks again
0
 
LVL 44

Expert Comment

by:bruintje
ID: 6903035
yeah you could try first a removal and then a clean install, but it's strange nothing came up from all the links above....wel wouldn't be the first time that happens ;)
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:jponce
ID: 6903161
Thanks all for the tips. I looked in the references and there is no Missing string. I also check how I instatiated the Recordset object and I used the ADODB.Recordset.

I've kept working with ComChecker. I've fixed all the errors and warnings. I still have the same problem.

Can I reinstall MDACs? I have tried but there was no change. Should I remove it?

Thanks again
0
 
LVL 2

Expert Comment

by:corvanderlinden
ID: 6920491
I know this is no help, but this way you know you are not the only one having these problems.
I have had the same problem with Connection.Open and ADO 2.5 and 2.6
The application was installed at 1500 customers. The error occured with 6 customers (the other worked just fine)
We have never been able to solve the problem. We wrote programs to check the registry for ADO and our DLL's entries. Everything was installed OK, but the error remained. The only solution was to reinstall the PC, then it worked.
0
 
LVL 44

Expert Comment

by:bruintje
ID: 6920505
OT comment

Hi corvanderlinden, after the reinstall did you install one ado version?

got the same (unsolved)problem on my work pc and have to compile programs on a second box

the problem goed even further if you change the reference in the vbp file and save try to check it in Sourcesafe it will revert back to the 2.6 dll........tried all combinations but compiling on another box is fine for now

:O)Bruintje
0
 

Author Comment

by:jponce
ID: 6920991
Well I been able fix my problem on my development PC. On start up I loaded the last known good configuration. This enabled me to cotinue with my developement. Soon I will be retrying the install.
-JP
0
 
LVL 16

Expert Comment

by:twalgrave
ID: 7754820
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in Community Support that this question is:
- refund/PAQ
Please leave any comments here within the
next seven days.
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
ID: 7811737
per recommendation

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Using "ScreenUpdating" 6 55
Add and format columns in vb6 7 46
Macro Excel - Multiple If conditions 2 63
VB6 ListBox Question 4 30
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

919 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

17 Experts available now in Live!

Get 1:1 Help Now