Solved

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

Posted on 2002-03-27
11
2,005 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
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 

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
 

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

Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Restricting text box entry from \/:?<>"| 9 87
Put text in a picture ASP.NET C# 2 57
Excel - Save a copy of work book 13 85
Export Data to Different .csv Files 26 105
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

809 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