473,796 Members | 2,586 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

converting access 97 to access 2000 and dao.recordset

hello

i am in the midst of converting all of the "inherited" databases from
access 97 to access 2000. one of the issues i have is the basic one:
dao.recordset. i have read that i need to simply turn off the ADO
reference and change the reference ms dao 3.6 object library to ms dao
3.51 object library or "disambigua te the code". i tried both and i
still receive the error message "run time error 3420 - object invalid
or no longer set."

Dim Dbe As Database
Dim RstSW As dao.Recordset

Set Dbe = DBEngine(0)(0)
Set RstSW = Dbe.OpenRecords et("SELECT * FROM [ScanWindowStruc tures]
WHERE (([ST ElementType] = '" & TSysMode & "'))")

why can't i set the RstSW as a dao.recordset?
any advise will be appreciated.
thanks in advance - jung
Nov 13 '05 #1
3 2621
DAO 3.51 is the DAO used with the Jet 3.5 that came with Access 97. Jet 4.0,
the one included with Access 2000 and later, uses DAO 3.6, so you'd have to
have some unusual circumstances to need to change the reference to 3.51. Try
restoring to the 3.6 version and see if it works any better.

Larry Linson
Microsoft Access MVP

"JMCN" <pi******@yahoo .fr> wrote in message
news:27******** *************** ***@posting.goo gle.com...
hello

i am in the midst of converting all of the "inherited" databases from
access 97 to access 2000. one of the issues i have is the basic one:
dao.recordset. i have read that i need to simply turn off the ADO
reference and change the reference ms dao 3.6 object library to ms dao
3.51 object library or "disambigua te the code". i tried both and i
still receive the error message "run time error 3420 - object invalid
or no longer set."

Dim Dbe As Database
Dim RstSW As dao.Recordset

Set Dbe = DBEngine(0)(0)
Set RstSW = Dbe.OpenRecords et("SELECT * FROM [ScanWindowStruc tures]
WHERE (([ST ElementType] = '" & TSysMode & "'))")

why can't i set the RstSW as a dao.recordset?
any advise will be appreciated.
thanks in advance - jung

Nov 13 '05 #2
Dim DBe as dao.database

set DBe = CurrentDB()

What is TSysMode ?

Where do you get the error? What else does the code do?

(david)

"JMCN" <pi******@yahoo .fr> wrote in message
news:27******** *************** ***@posting.goo gle.com...
hello

i am in the midst of converting all of the "inherited" databases from
access 97 to access 2000. one of the issues i have is the basic one:
dao.recordset. i have read that i need to simply turn off the ADO
reference and change the reference ms dao 3.6 object library to ms dao
3.51 object library or "disambigua te the code". i tried both and i
still receive the error message "run time error 3420 - object invalid
or no longer set."

Dim Dbe As Database
Dim RstSW As dao.Recordset

Set Dbe = DBEngine(0)(0)
Set RstSW = Dbe.OpenRecords et("SELECT * FROM [ScanWindowStruc tures]
WHERE (([ST ElementType] = '" & TSysMode & "'))")

why can't i set the RstSW as a dao.recordset?
any advise will be appreciated.
thanks in advance - jung

Nov 13 '05 #3
thanks for responding but now we are told and forced to convert all
databases to access 2003. so in the end, i will more likely rewrite
some of the code because the code is part of a splash screen that
identifies users and calculate business days. so i'll be looking at
other posts regarding conversion acc97 to acc2003.

thanks again!!! cheers - jung

"Larry Linson" <bo*****@localh ost.not> wrote in message news:<GS******* **********@nwrd dc04.gnilink.ne t>...
DAO 3.51 is the DAO used with the Jet 3.5 that came with Access 97. Jet 4.0,
the one included with Access 2000 and later, uses DAO 3.6, so you'd have to
have some unusual circumstances to need to change the reference to 3.51. Try
restoring to the 3.6 version and see if it works any better.

Larry Linson
Microsoft Access MVP

"JMCN" <pi******@yahoo .fr> wrote in message
news:27******** *************** ***@posting.goo gle.com...
hello

i am in the midst of converting all of the "inherited" databases from
access 97 to access 2000. one of the issues i have is the basic one:
dao.recordset. i have read that i need to simply turn off the ADO
reference and change the reference ms dao 3.6 object library to ms dao
3.51 object library or "disambigua te the code". i tried both and i
still receive the error message "run time error 3420 - object invalid
or no longer set."

Dim Dbe As Database
Dim RstSW As dao.Recordset

Set Dbe = DBEngine(0)(0)
Set RstSW = Dbe.OpenRecords et("SELECT * FROM [ScanWindowStruc tures]
WHERE (([ST ElementType] = '" & TSysMode & "'))")

why can't i set the RstSW as a dao.recordset?
any advise will be appreciated.
thanks in advance - jung

Nov 13 '05 #4

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

Similar topics

10
4231
by: B Moor | last post by:
Host PC: Win SBS 2003 with 2.6 GHz processor and 1GB RAM SQL Server 2000 sp3 (or latest).MS Office 2k3 I have the access 2k3 front end running on server (this may get changed) and all was well until an upgrade 1 week ago when I installed a new version of the mde (with very minor changes) and a new VB application via a VB6 installer setup.exe. Access uses odbc to linked tables on SQL Server, plus a few local tables.
7
4529
by: David C. Barber | last post by:
I've upsized an Access 2000 MDB to an ADP and changed the tables from a linked Access Backend to SQL Server. Now I'm told I can't use DAO any more and need to convert to ADO. While I've used ADO in VB6, there I created my connection object and had easy access to it. All I want to know is how do I convert: Dim db as DAO.Database Dim rs as DAO.Recordset Set db = currentdb
2
2035
by: David C. Barber | last post by:
upsized an MDB to ADP/SQL Server 2000 under Access 2000. All the DAO code that I've changed to ADO code is working fine, HOWEVER the form Record Source itself does not seem willing to return data. I've set the Record Source to both the query, and the SQL contained within the query, and although the system pauses long enough to have gone out and retrieved the data, I can't see it. The form itself remains gray. In addition: ...
36
4485
by: kjvt | last post by:
Based on a prior posting, I've written a function to convert a recordset to a dataview. The first call to the function for a given recordset works perfectly, but the second call always returns a dataview with a count = 0. Can someone explain why and how I might work around this problem? Here is the code for my function: Public Shared Function GetViewFromRS(ByVal pRS As ADODB.Recordset) _ As DataView
3
2125
by: George H. Slamowitz | last post by:
Hello All I am trying to convert a MS Access 2000 application to a VB application (Just Started Yesterday) I am using Visual Studio .NET 2003 utilizing Visual Basic .NET I think I have a good feel to what I have to do, but does anyone know of a GOOD white paper on what is involved, pitfalls, etc?
12
2266
by: Cy | last post by:
Hello Fellow New Group Folks, Here's today's problem. I was called in to help convert an Access 97 database to Access 2000. 99% of all my Access Dev. work has occurred in 2000, so I know very little about 97, however, from everything I read, it sounded like a conversion from 97 to 2000 should go smoothly. Boy was I wrong. Here's what we got. There is a form, that lists a group of employees. There is a command button, that when...
59
7524
by: Rico | last post by:
Hello, I have an application that I'm converting to Access 2003 and SQL Server 2005 Express. The application uses extensive use of DAO and the SEEK method on indexes. I'm having an issue when the recordset opens a table. When I write Set rst = db.OpenRecordset("MyTable",dbOpenTable, dbReadOnly) I get an error. I believe it's invalid operation or invalid parameter, I'm
10
1966
by: powelly | last post by:
Hi i Know this looks weird by i done a database in 2000 all worked well than i had to convert it to 97. I had to redo all my code that was fine but i can not get the form to addnew when OnOpen runs just won`t except it In access 2000 all i needed was recordset.addnew how do you do this in 97 ??? Thankyou for any help
6
2677
by: jsacrey | last post by:
Hello everybody, I've got a bit of a situation that I could use some guidance with if possible. I work for an auditing firm where my users audit electronic shipping data for customers to see if they've been overcharged for shipments by truck and rail carriers. 99.9% of the time, one of our auditors needs to see all data sent by a customer in datasheet view so that they can sort records in many different ways looking for duplication...
0
9685
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
9535
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
10465
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...
1
10200
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10021
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...
0
9061
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6800
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
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2931
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.