Group:  Microsoft Access ยป microsoft.public.access.externaldata
Thread: object invalid or no longer set error problem

DotNetBag
.NET Development Newsgroups

HTVi
TV Discussion Newsgroups

Our Hot Pick: Rising Antivirus 2006 - Certified by TUV & Checkmark! Get 10% discount by entering this coupon code: ONDISCOUNT10
Rising Antivirus 2006

object invalid or no longer set error problem
eeriksson 27.09.2006 11:54:01
We have developed an access application with a backend access DB on the
network. The application contains forms that display a lot of data. The
problem occurs when the network connection is lost (e.g. when a client goes
into standy). The forms/queries quite naturally cannot access the data from
the backend and starts to display the error-message: "object invalid or no
longer set".
The problem is that access generates hundreds of these messages for some of
the forms. Is there a workaround?
1. Maybe there is some way to make access wait for the connection to be
available instead of throwing errors?
2. Otherwise, can this error message be supressed?
3. If that is not possible, can the user somehow close one or all forms (to
stop the messages coming) without exiting the application.

Any help is appreciated!

/Erik
RE: object invalid or no longer set error problem
Klatuu 27.09.2006 17:15:02
You must have a really bad network.
The only thing you can do is trap for the error in all your error handling
routines. When you get the first one, you will probably have to tell the
user to try again later and shut the application down.

The only other thing you could do would be to set a timer and use the timer
event to try to relink all your tables and if that fails, tell the user and
start the timer over again.

"eeriksson" wrote:

[Quoted Text]
> We have developed an access application with a backend access DB on the
> network. The application contains forms that display a lot of data. The
> problem occurs when the network connection is lost (e.g. when a client goes
> into standy). The forms/queries quite naturally cannot access the data from
> the backend and starts to display the error-message: "object invalid or no
> longer set".
> The problem is that access generates hundreds of these messages for some of
> the forms. Is there a workaround?
> 1. Maybe there is some way to make access wait for the connection to be
> available instead of throwing errors?
> 2. Otherwise, can this error message be supressed?
> 3. If that is not possible, can the user somehow close one or all forms (to
> stop the messages coming) without exiting the application.
>
> Any help is appreciated!
>
> /Erik

Home | Search | Terms | Imprint | Contact
Newsgroups Reader - provided by WiredBox.Net