473,657 Members | 2,690 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Moved from Win 2000 to Win XP and receive Class Not Registered error

I have recently been provided with a new laptop. The old one ran Win
2000 with Access 2000 and the new one runs Win XP with Access 2000.
When I try to run some of my modules in my old databases on the new
machine, I receive a runtime error "Class Not Registered" on the first
step where I open a table:

rs.Open "[Tbl_Agent]", CurrentProject. Connection, _
adOpenKeyset, adLockOptimisti c

Anyone have any idea what might be wrong? I checked my references and
they are set the same on my old laptop as they are on the new one.

The old PC had MDAC 2.5 and the new one does also. I downloaded MDAC
2.8 and still got the same error.

Any suggestions would be greatly appreciated.

Scott
Nov 12 '05 #1
4 4175
"Scott Dillard" <sd******@mcint oshassociates.c om> wrote in message
news:63******** *************** ***@posting.goo gle.com...
I have recently been provided with a new laptop. The old one ran Win
2000 with Access 2000 and the new one runs Win XP with Access 2000.
When I try to run some of my modules in my old databases on the new
machine, I receive a runtime error "Class Not Registered" on the first
step where I open a table:

rs.Open "[Tbl_Agent]", CurrentProject. Connection, _
adOpenKeyset, adLockOptimisti c

Anyone have any idea what might be wrong? I checked my references and
they are set the same on my old laptop as they are on the new one.

The old PC had MDAC 2.5 and the new one does also. I downloaded MDAC
2.8 and still got the same error.

Any suggestions would be greatly appreciated.

Scott


Scott, you may be missing a reference to ADO (your syntax is ADO). Go to
the modules window, choose Tools->References and make sure Microsoft ActiveX
Data Objects is selected. Select it, then compile to check it.
Nov 12 '05 #2
"Randy Harris" <ra***@SpamFree .com> wrote in message news:<9c******* *************@n ewssvr28.news.p rodigy.com>...
"Scott Dillard" <sd******@mcint oshassociates.c om> wrote in message
news:63******** *************** ***@posting.goo gle.com...
I have recently been provided with a new laptop. The old one ran Win
2000 with Access 2000 and the new one runs Win XP with Access 2000.
When I try to run some of my modules in my old databases on the new
machine, I receive a runtime error "Class Not Registered" on the first
step where I open a table:

rs.Open "[Tbl_Agent]", CurrentProject. Connection, _
adOpenKeyset, adLockOptimisti c

Anyone have any idea what might be wrong? I checked my references and
they are set the same on my old laptop as they are on the new one.

The old PC had MDAC 2.5 and the new one does also. I downloaded MDAC
2.8 and still got the same error.

Any suggestions would be greatly appreciated.

Scott


Scott, you may be missing a reference to ADO (your syntax is ADO). Go to
the modules window, choose Tools->References and make sure Microsoft ActiveX
Data Objects is selected. Select it, then compile to check it.

Randy, I checked it and the Microsoft ActiveX Data Object is selected.
This is a VBA app within an Access module so I don't think it can be
compiled. When I go into debug mode and put the cursor over the code
line in error, I see "CurrentProject .Connection = <Class not
registered>". Any other suggestions welcome. Thanks.
Nov 12 '05 #3
Scott, I was truly hoping that someone smarter than me would chime in here
and give you the answer. I'm only guessing, but it sounds as though your
ADO library isn't registered in the OS. Have you tried selecting a
different version of ADO, just to see if that would work?

Or, you could try simply registering the appropriate DLL. The command would
be something like:
Regsvr32 msado26.dll

Randy
"Scott Dillard" <sd******@mcint oshassociates.c om> wrote in message
news:63******** *************** ***@posting.goo gle.com...
"Randy Harris" <ra***@SpamFree .com> wrote in message

news:<9c******* *************@n ewssvr28.news.p rodigy.com>...
"Scott Dillard" <sd******@mcint oshassociates.c om> wrote in message
news:63******** *************** ***@posting.goo gle.com...
I have recently been provided with a new laptop. The old one ran Win
2000 with Access 2000 and the new one runs Win XP with Access 2000.
When I try to run some of my modules in my old databases on the new
machine, I receive a runtime error "Class Not Registered" on the first
step where I open a table:

rs.Open "[Tbl_Agent]", CurrentProject. Connection, _
adOpenKeyset, adLockOptimisti c

Anyone have any idea what might be wrong? I checked my references and
they are set the same on my old laptop as they are on the new one.

The old PC had MDAC 2.5 and the new one does also. I downloaded MDAC
2.8 and still got the same error.

Any suggestions would be greatly appreciated.

Scott


Scott, you may be missing a reference to ADO (your syntax is ADO). Go to the modules window, choose Tools->References and make sure Microsoft ActiveX Data Objects is selected. Select it, then compile to check it.

Randy, I checked it and the Microsoft ActiveX Data Object is selected.
This is a VBA app within an Access module so I don't think it can be
compiled. When I go into debug mode and put the cursor over the code
line in error, I see "CurrentProject .Connection = <Class not
registered>". Any other suggestions welcome. Thanks.

Nov 12 '05 #4
Thanks Randy but no luck. I have downloaded and reinstalled the MDAC
files, the latest Jet files, and also registered the DLL but still now
luck. It has something to do with the .Connection I think because
CurrentProject works with other commands/methods?

Scott

"Randy Harris" <ra***@SpamFree .com> wrote in message news:<nV******* *************@n ewssvr28.news.p rodigy.com>...
Scott, I was truly hoping that someone smarter than me would chime in here
and give you the answer. I'm only guessing, but it sounds as though your
ADO library isn't registered in the OS. Have you tried selecting a
different version of ADO, just to see if that would work?

Or, you could try simply registering the appropriate DLL. The command would
be something like:
Regsvr32 msado26.dll

Randy
"Scott Dillard" <sd******@mcint oshassociates.c om> wrote in message
news:63******** *************** ***@posting.goo gle.com...
"Randy Harris" <ra***@SpamFree .com> wrote in message

news:<9c******* *************@n ewssvr28.news.p rodigy.com>...
"Scott Dillard" <sd******@mcint oshassociates.c om> wrote in message
news:63******** *************** ***@posting.goo gle.com...
> I have recently been provided with a new laptop. The old one ran Win
> 2000 with Access 2000 and the new one runs Win XP with Access 2000.
> When I try to run some of my modules in my old databases on the new
> machine, I receive a runtime error "Class Not Registered" on the first
> step where I open a table:
>
> rs.Open "[Tbl_Agent]", CurrentProject. Connection, _
> adOpenKeyset, adLockOptimisti c
>
> Anyone have any idea what might be wrong? I checked my references and
> they are set the same on my old laptop as they are on the new one.
>
> The old PC had MDAC 2.5 and the new one does also. I downloaded MDAC
> 2.8 and still got the same error.
>
> Any suggestions would be greatly appreciated.
>
> Scott

Scott, you may be missing a reference to ADO (your syntax is ADO). Go to the modules window, choose Tools->References and make sure Microsoft ActiveX Data Objects is selected. Select it, then compile to check it.

Randy, I checked it and the Microsoft ActiveX Data Object is selected.
This is a VBA app within an Access module so I don't think it can be
compiled. When I go into debug mode and put the cursor over the code
line in error, I see "CurrentProject .Connection = <Class not
registered>". Any other suggestions welcome. Thanks.

Nov 12 '05 #5

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

Similar topics

1
1543
by: RichGolebiowski | last post by:
I have a class library (clsTestLib) that was created in VB.Net that I would like to use in Access 2000. I created a typelib for the class using regasm.exe. I am able to refernce (add a reference) the dll using the generated typelib. In Access, when I run the Access application and declare a new instance of the class as follows Dim MyTest As clsTestLib.Class1 Set MyTest = New clsTestLib.Class1 I get an error Run-time message that says...
1
8175
by: mark | last post by:
In Access 2000 and 2002, I have created an import specification to import the fixed-width recordset below into an existing table. I am having strange problems with the import of the date and time fields. 177 102003 16:43:12 102003 18:43:12 6OAG0ADP Y 0000 0000 0000 0000 61930 4HGA800 165 102003 17:43:12 102003 18:44:12 6OAG0ADP Y 0000 0000 0000 0000 61930 4HGA800 177 102003 16:41:18 102003 18:45:12 6OAG0ADP Y 0000 0000 0000 0000 61930...
3
8378
by: rua17 | last post by:
I add tow Com libraries to my project, I can see their content with intellisense, but when I instantiate a class contained in the library: PDDirectLib.PDDatabaseQuery pDbQuery = new PDDirectLib.PDDatabaseQuery(); It raises an unhandled exception "Class not registered" any idea???
1
7093
by: Jim | last post by:
Have fully operational software package developed on VB.NET that worked until Jan 1 2003, with early stage deployments on Oct 10, Oct 23, Nov 11, Dec 12 and Dec 30. When attempted final deployment on Jan 2, 2004 got following messages and errors... I reset everything and tried several times agian. Then erased the setup project and tried to rebuild a new one with the same errors. PLease note... ALL this this code ran perfectly five minutes...
4
7296
by: coosa | last post by:
Hi, I was installing SQL Server on my machine and during installation my PC freezed. It happens frequently on my machine. So i tried after restarting to install it again and since then i always get the same error message: "An error occurred while creating one or more registry entries. Please see C:\WINDOWS\sqlstp.log for details. The problem could be caused by a low registry quota condition" I have tried to clean the registry and i...
0
1512
by: papaja | last post by:
Hello, I believe I didn't change anything on my machine but my web applications, particularly pages accessing Microsoft Access DB, suddenly refused to work. I get this error: ---------------------------------------------------------- Server Error in '/tulumovic' Application.
1
3452
by: Marek Murin | last post by:
Hi all, I have created vb.net user control that has to be used by vb6 form. Everything goes well with putting the vb.net user control on the VB6 form until I want to receive any event from my control. The event handler is displayed on VB6 IDE combo and you can create a sub for it as usual, but when I run the vb6 form to test it, it won't work. I have spent too much time til now with that without finding solution. Can anybody help me ?
3
8087
by: | last post by:
Hi All, I have several classic asp pages in site that were originally programmed with Visual Interdev (or Visual Web Developer Alpha... remember that?). The pages use the Script Library objects for Recordset and Data Grid functionality. The database is an Access mdb file that we connect to. The app was recently moved from a Windows 2000, IIS 5 server to a Windows 2003 IIS 6 server. The permissions, database connections info etc was...
3
1522
by: partybob99 | last post by:
Hi everyone. I have a very strange problem and I have no idea how to correct it. I created a VB.NET DLL that is used by several different apps for password file encryption/decryption. I have the original .NET DLL and I also built the DLL with a COM wrapper (the COM interop box checked in the project...) so it can be used with VB6 apps (or any other language for that matter). In order for a VB6 app to use this DLL, this control must...
0
8394
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8306
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8825
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8605
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6164
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4152
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.