473,748 Members | 7,571 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Object invaliad or no longer set error after onverting from Access 97 to 2000

Hello
I have a very complex database application, which have been working
fine for several years in Access 97. Now I had to convert it into
Access 2000.
The main form (course) has got 2 subforms. One subform (course
occurrence) has got 4 subforms of its own, another subform (course web
description) has got 1. The main form has got navigation buttons,
occurrence subform has got navigation buttons (there can be several
occurrences of the course) and one of the second level subforms
(qualifications ) has got own navigation buttons. The navigation
buttons are from Access 97 Developer's Handbook by Litwin, Getz and
Gilbert. In Access 97 version of the application these custom
navigation buttons were a blessing, now it is a pain.
Quite a lot of VBA code (including Navigation module from Developer's
Handbook) uses a concept of recordsetclone. As long as one navigates
through the form, it's OK. But every other action: opening of another
form, for example, then the return to the course form, and here it is:
Object invalid and no longer set.
I have commented all "On Error..." statements throughout the code to
catch, what generates the error. The problem seems to be
recordsetclone, and not set recordsetclone command itself, but next
after it, for example in module Navigation:
Function adhEnableButton s(frm As Form)
'
' Attached to the specified form's Current event.
'
' This function enables and disables buttons as
' necessary, depending on which is the current
' record on the form.
'
' This function counts on buttons named cmdFirst,
' cmdPrev, cmdNext, cmdLast and cmdNew. One
' could code around this, but it seemed like
' overkill for this example.
'
' In:
' frm: A reference to the form in question.
' Out:
' Nothing

Dim rst As DAO.Recordset
Dim fAtNew As Integer
Dim fUpdatable As Integer
'The following command and label is added by me - Galina
'On Error GoTo TheEnd:
frm!txtCurrRec = frm.CurrentReco rd
Set rst = frm.RecordsetCl one
rst.MoveLast

After one returns to the courses form, rst.MoveLast throws the
application out.
I really wouldn't like to change navigation buttons. What can I do?
Any help would be greatly appreciated.
I believe, I have service pack 7 for jet installed on my PC:
4.0.7328.0
Galina
Nov 12 '05 #1
2 1865
First thing to try is Jet 4 SP8 (version 4.0.8015).
Download from support.microso ft.com

Also make sure you have Office 2000 SP3.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Galina" <ga****@mail.ru > wrote in message
news:ec******** *************** **@posting.goog le.com...
Hello
I have a very complex database application, which have been working
fine for several years in Access 97. Now I had to convert it into
Access 2000.
The main form (course) has got 2 subforms. One subform (course
occurrence) has got 4 subforms of its own, another subform (course web
description) has got 1. The main form has got navigation buttons,
occurrence subform has got navigation buttons (there can be several
occurrences of the course) and one of the second level subforms
(qualifications ) has got own navigation buttons. The navigation
buttons are from Access 97 Developer's Handbook by Litwin, Getz and
Gilbert. In Access 97 version of the application these custom
navigation buttons were a blessing, now it is a pain.
Quite a lot of VBA code (including Navigation module from Developer's
Handbook) uses a concept of recordsetclone. As long as one navigates
through the form, it's OK. But every other action: opening of another
form, for example, then the return to the course form, and here it is:
Object invalid and no longer set.
I have commented all "On Error..." statements throughout the code to
catch, what generates the error. The problem seems to be
recordsetclone, and not set recordsetclone command itself, but next
after it, for example in module Navigation:
Function adhEnableButton s(frm As Form)
'
' Attached to the specified form's Current event.
'
' This function enables and disables buttons as
' necessary, depending on which is the current
' record on the form.
'
' This function counts on buttons named cmdFirst,
' cmdPrev, cmdNext, cmdLast and cmdNew. One
' could code around this, but it seemed like
' overkill for this example.
'
' In:
' frm: A reference to the form in question.
' Out:
' Nothing

Dim rst As DAO.Recordset
Dim fAtNew As Integer
Dim fUpdatable As Integer
'The following command and label is added by me - Galina
'On Error GoTo TheEnd:
frm!txtCurrRec = frm.CurrentReco rd
Set rst = frm.RecordsetCl one
rst.MoveLast

After one returns to the courses form, rst.MoveLast throws the
application out.
I really wouldn't like to change navigation buttons. What can I do?
Any help would be greatly appreciated.
I believe, I have service pack 7 for jet installed on my PC:
4.0.7328.0
Galina

Nov 12 '05 #2
Allen
Thank you very much! It worked!!!
Galina

"Allen Browne" <Al*********@Se eSig.Invalid> wrote in message news:<40******* *************** *@freenews.iine t.net.au>...
First thing to try is Jet 4 SP8 (version 4.0.8015).
Download from support.microso ft.com

Also make sure you have Office 2000 SP3.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"Galina" <ga****@mail.ru > wrote in message
news:ec******** *************** **@posting.goog le.com...
Hello
I have a very complex database application, which have been working
fine for several years in Access 97. Now I had to convert it into
Access 2000.
The main form (course) has got 2 subforms. One subform (course
occurrence) has got 4 subforms of its own, another subform (course web
description) has got 1. The main form has got navigation buttons,
occurrence subform has got navigation buttons (there can be several
occurrences of the course) and one of the second level subforms
(qualifications ) has got own navigation buttons. The navigation
buttons are from Access 97 Developer's Handbook by Litwin, Getz and
Gilbert. In Access 97 version of the application these custom
navigation buttons were a blessing, now it is a pain.
Quite a lot of VBA code (including Navigation module from Developer's
Handbook) uses a concept of recordsetclone. As long as one navigates
through the form, it's OK. But every other action: opening of another
form, for example, then the return to the course form, and here it is:
Object invalid and no longer set.
I have commented all "On Error..." statements throughout the code to
catch, what generates the error. The problem seems to be
recordsetclone, and not set recordsetclone command itself, but next
after it, for example in module Navigation:
Function adhEnableButton s(frm As Form)
'
' Attached to the specified form's Current event.
'
' This function enables and disables buttons as
' necessary, depending on which is the current
' record on the form.
'
' This function counts on buttons named cmdFirst,
' cmdPrev, cmdNext, cmdLast and cmdNew. One
' could code around this, but it seemed like
' overkill for this example.
'
' In:
' frm: A reference to the form in question.
' Out:
' Nothing

Dim rst As DAO.Recordset
Dim fAtNew As Integer
Dim fUpdatable As Integer
'The following command and label is added by me - Galina
'On Error GoTo TheEnd:
frm!txtCurrRec = frm.CurrentReco rd
Set rst = frm.RecordsetCl one
rst.MoveLast

After one returns to the courses form, rst.MoveLast throws the
application out.
I really wouldn't like to change navigation buttons. What can I do?
Any help would be greatly appreciated.
I believe, I have service pack 7 for jet installed on my PC:
4.0.7328.0
Galina

Nov 12 '05 #3

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

Similar topics

8
3998
by: mcmg | last post by:
Hi, I have an asp app that works fine on a windows xp machine but does not work on a windows 2000 server. I have the following code in my global.asa: <OBJECT RUNAT=Server SCOPE=SESSION ID=MyID
11
9266
by: DrUg13 | last post by:
In java, this seems so easy. You need a new object Object test = new Object() gives me exactly what I want. could someone please help me understand the different ways to do the same thing in C++. I find my self sometimes, trying Object app = Object(); Object *app = Object(); Object app = new Object();
7
36714
by: deko | last post by:
I'm getting intermittent "Object Invalid or No Longer Set" errors in my Access 2002 mdb. What causes these errors? Has anyone dealt with this before? I can't trace it because it's not easy to duplicate -- it just show up... I've heard that spurious queries that use Now() or Date() or some other date
7
3420
by: (Pete Cresswell) | last post by:
We were testing a version of our app that's been running for months with no problems and it started throwing "Object no longer exists" messages on two machines in the test environment. We tried the same test scenario on a production box: no problems. Tried them on my developer box: no problems. In each of those two cases, the PC's were connected to the same test server and *supposedly* had the same production build image on them. ...
2
4668
by: TSanders | last post by:
Hello everyone, I hope someone here can help. I created an application in MSAccess 2000 using VBA for a local telco to track their DSL orders. The database is split into a front end and a back end. There are approximately 60 users. 4 of the users receive the error "Object invalid or no longer set" at random times while they are using the application. After trying all the suggestions on Microsoft's site, the error is still occurring....
26
5693
by: yb | last post by:
Hi, Is there a standard for the global 'window' object in browsers? For example, it supports methods such as setInterval and clearInterval, and several others. I know that w3c standardized several parts of the DOM, but this does not include the window object. Thank you
0
435
by: rmk | last post by:
How can I get the 2000 and 2005 versions of SQL Server Reporting Services both working on my development laptop ????? I have ASP.NET 1.1 and 2.0 installed on my laptop. I have Visual Studio 2003 and 2005 installed on my laptop. I have my default website configured for ASP.NET 2.0. I have the developer edition of SQL Server 2000 installed on my laptop as
2
5952
by: 4bex | last post by:
Hello there, I am trying to get to the bottom of an 'Object invalid or no longer set' issue, but I am not a database programmer. We have approx 20 users on MS Access 2002 front ends on 2 sites connected by WAN using a SQL 2000 SP4 database backend. 1 site is 24 hours, the other is 9 - 5 operation. We have a SQL database at both sites using replication. Every 10 minutes the data entered at 24hr site is uploaded to 9-5...
13
13253
yolenman
by: yolenman | last post by:
Hello - This is my first posting to this group, so please bear with me. Also note, that while I'm intelligent, databases are not in my field of knowledge. I'm working with a small limousine company. They presently have about 4 networked computers, all running Windows XP (w/SP2) and Microsoft Office 2000 (specifically Access 2000) - and a plain jane p3 server also running Windows XP (w/sp2) with Office 2000 loaded onto it. These...
0
8830
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
9372
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9247
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
8243
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
6074
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
4606
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...
0
4874
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2783
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2215
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.