Object invalid or no longer set error

  • Thread starter Thread starter J
  • Start date Start date
J

J

Is there a way for me to get more specifics or to trap this error. It seems
to be happening at random times and sometimes just when the database has been
idle for a few minutes.

Any help is appreciated.
 
Hi John -

Thanks for your response. I wish I could post the code that is causing this
issue, but that's my problem, I don't know what specifically is causing the
error. Even though it's an error, if you click on OK you can continue
working. It doesn't give you the option to "debug". I also had instances
where I walked away from my pc and when I came back I had to click OK several
times to get past the error, but then I could continue on like nothing
happened. It doesn't stop any processes.

The db is fairly complex and has many tab controls and subforms. I just
don't know how to pinpoint what "object" is causing the issue.
 
J said:
Thanks for your response. I wish I could post the code that is causing this
issue, but that's my problem, I don't know what specifically is causing the
error. Even though it's an error, if you click on OK you can continue
working. It doesn't give you the option to "debug". I also had instances
where I walked away from my pc and when I came back I had to click OK several
times to get past the error,

I wonder if you have a hidden form on a timer that is having some
troubles.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a free, convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/
Granite Fleet Manager http://www.granitefleet.com/
 
John_G via AccessMonster.com said:
It sounds as if the errors are being trapped by "On error go to..."
statements which branch to an error processing routine, which then uses
Msgbox to display err.description. This is of course good programming
practice, but it can make debugging difficult.

I very much like using MZTools because it has a convenient button for
creating the standard error trapping, which you can customize, but it
also includes the object name and procedure name. Of course you have
to ensure that you change the text if you rename the object or the
procedure.

Tony
--
Tony Toews, Microsoft Access MVP
Tony's Main MS Access pages - http://www.granite.ab.ca/accsmstr.htm
Tony's Microsoft Access Blog - http://msmvps.com/blogs/access/
For a free, convenient utility to keep your users FEs and other files
updated see http://www.autofeupdater.com/
Granite Fleet Manager http://www.granitefleet.com/
 
Back
Top