473,398 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Access Run Time in the MAC environment Err: object not set

Hi Everyone,

Here is another question:

I run a database in Access RT in a Virtual PC environment.

Every now and then I get an error: "Object Not set", which then freezes
everything. Not even CTRL + ALT + DELETE can really help.

Any idea what I can do to solve this problem???
---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.687 / Virus Database: 448 - Release Date: 16/05/2004
Nov 12 '05 #1
6 1588
On Thu, 20 May 2004 12:26:42 +1200, "WindAndWaves" <ac****@ngaru.com>
wrote:

Buy a PC. Dell had a new one for $600.

No really, you just expect too much from an emulator. They work until
they don't. I'm assuming this is not a case where the error is
reproducible on a PC.

-Tom.

Hi Everyone,

Here is another question:

I run a database in Access RT in a Virtual PC environment.

Every now and then I get an error: "Object Not set", which then freezes
everything. Not even CTRL + ALT + DELETE can really help.

Any idea what I can do to solve this problem???
---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.687 / Virus Database: 448 - Release Date: 16/05/2004


Nov 12 '05 #2
Yes, I agree with all that (virtual PC may not do everything), but I do
find that everything else works, so i probably just need to change one line
in a procedure or so.

The thing is, it comes up completely randomly, almost like a timer, but i do
not use any events like that, as far as I know.

How could I analyse the bug??? or cath it somewhere???
---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.687 / Virus Database: 448 - Release Date: 16/05/2004
Nov 12 '05 #3
On Thu, 20 May 2004 17:59:53 +1200, "WindAndWaves" <ac****@ngaru.com>
wrote:

You could try the standard "on error goto" error handler in every
procedure. If it truly is an imperfection in the emulator, that may
not help though.

-Tom.

Yes, I agree with all that (virtual PC may not do everything), but I do
find that everything else works, so i probably just need to change one line
in a procedure or so.

The thing is, it comes up completely randomly, almost like a timer, but i do
not use any events like that, as far as I know.

How could I analyse the bug??? or cath it somewhere???
---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.687 / Virus Database: 448 - Release Date: 16/05/2004


Nov 12 '05 #4
as far as I know i have in each procedure (although i sometimes use on error
resume next). Is there no way to find out where it happens in another
way???

Thank you for your help.


"Tom van Stiphout" <to*****@no.spam.cox.net> wrote in message
news:3c********************************@4ax.com...
On Thu, 20 May 2004 17:59:53 +1200, "WindAndWaves" <ac****@ngaru.com>
wrote:

You could try the standard "on error goto" error handler in every
procedure. If it truly is an imperfection in the emulator, that may
not help though.

-Tom.

Yes, I agree with all that (virtual PC may not do everything), but I do
find that everything else works, so i probably just need to change one linein a procedure or so.

The thing is, it comes up completely randomly, almost like a timer, but i donot use any events like that, as far as I know.

How could I analyse the bug??? or cath it somewhere???
---
Please immediately let us know (by phone or return email) if (a) this emailcontains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.687 / Virus Database: 448 - Release Date: 16/05/2004

---
Please immediately let us know (by phone or return email) if (a) this email
contains a virus
(b) you are not the intended recipient
(c) you consider this email to be spam.
We have done our utmost to make sure that
none of the above are applicable. THANK YOU
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.688 / Virus Database: 449 - Release Date: 18/05/2004
Nov 13 '05 #5
"WindAndWaves" <ac****@ngaru.com> wrote:
Every now and then I get an error: "Object Not set", which then freezes
everything. Not even CTRL + ALT + DELETE can really help.


No idea as to why it freezes. I was getting this message when I had declared a
global database variable but for some reason somewhere it was getting lost. So I
ended up resetting that variable every time the user hit the main menu.

When I'm programming this would get lost when I was debugging code and hitting the
End code button. However if you're running on a runtime then this isn't the case.

Tony
--
Tony Toews, Microsoft Access MVP
Please respond only in the newsgroups so that others can
read the entire thread of messages.
Microsoft Access Links, Hints, Tips & Accounting Systems at
http://www.granite.ab.ca/accsmstr.htm
Nov 13 '05 #6
Tony Toews <tt****@telusplanet.net> wrote in
news:ph********************************@4ax.com:
"WindAndWaves" <ac****@ngaru.com> wrote:
Every now and then I get an error: "Object Not set", which then
freezes everything. Not even CTRL + ALT + DELETE can really help.


No idea as to why it freezes. I was getting this message when I
had declared a global database variable but for some reason
somewhere it was getting lost. So I ended up resetting that
variable every time the user hit the main menu.

When I'm programming this would get lost when I was debugging code
and hitting the End code button. However if you're running on a
runtime then this isn't the case.


Don't use a global database variable. Instead, use a global function
that returns an object of type DAO.Database, since you can make that
function internally self-healing by re-initializing your actual
global variable, if necessary. My code for this follows my sig.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc

[at module level, same one as included the function:]
Private dbCurrent As DAO.Database

Public Function dbLocal(Optional ysnInitialize As Boolean = True) _
As DAO.Database
' 2003/02/08 DWF added comments to explain it to myself!
' uses GoTos instead of If/Then because:
' error of dbCurrent not being Nothing but dbCurrent being
' closed would (3420) would then be jumping back into
' the middle of an If/Then statement
On Error GoTo errHandler
Dim strTest As String

If Not ysnInitialize Then GoTo closeDB

retryDB:
If dbCurrent Is Nothing Then
Set dbCurrent = CurrentDb()
End If
' now that we know the db variable is not Nothing,
' test if it's Open
strTest = dbCurrent.Name

exitRoutine:
Set dbLocal = dbCurrent
Exit Function

closeDB:
If Not (dbCurrent Is Nothing) Then
'dbCurrent.close
Set dbCurrent = Nothing
End If
GoTo exitRoutine

errHandler:
Select Case Err.Number
Case 3420 ' Object invalid or no longer set.
Set dbCurrent = Nothing
If ysnInitialize Then
Resume retryDB
Else
Resume closeDB
End If
Case Else
MsgBox Err.Number & ": " & Err.Description, vbExclamation, _
"Error in dbLocal()"
Resume exitRoutine
End Select
End Function
Nov 13 '05 #7

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

Similar topics

9
by: Tony Williams | last post by:
I have an Access database that we use as a document index system. The documents can be Word, Excel, pdf's etc I have a command button on a form that opens the document in whatever program is...
6
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much...
8
by: mytfein | last post by:
Hi Everyone, Background: Another department intends to ftp a .txt file from the mainframe, for me to process. The objective is to write a vb script that would be scheduled to run daily to...
7
by: dog | last post by:
I've seen plenty of articles on this topic but none of them have been able to solve my problem. I am working with an Access 97 database on an NT4.0 machine, which has many Access reports. I...
11
by: Grasshopper | last post by:
Hi, I am automating Access reports to PDF using PDF Writer 6.0. I've created a DTS package to run the reports and schedule a job to run this DTS package. If I PC Anywhere into the server on...
4
by: alexandre.brisebois | last post by:
Hi, I am using access 2003, I would like to know if there is an option to reorganize the tables in a maner that is readable, as we can do in sql sever 2000 or 2005. I have been given a database...
8
by: Greg Strong | last post by:
Hello All, The short questions are 1 Do you know how to make DSN connection close in Access to Oracle 10g Express Edition? &/or 2 Do you know how to make a DSN-less pass-through query...
6
by: Mark | last post by:
Currently using MS Access 2000 and SQL Server Express. Using the current DAO OpenRecordset code listed below, however I keep getting the error message.... 3254: ODBC --Cannot lock all records ...
2
hyperpau
by: hyperpau | last post by:
Before anything else, I am not a very technical expert when it comes to VBA coding. I learned most of what I know by the excellent Access/VBA forum from bytes.com (formerly thescripts.com). Ergo, I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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,...
0
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...
0
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...
0
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...

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.