Hi - have you ever had a random disconnect to SQL server? I've gotten that but MORE relevant now, it seems our tech guys have implemented a time-out feature to disconnect ODBC connections after some time. Is there a way to "catch" such a disconnect and force a reconnection especially when running a batch process that takes a long time? THANKS!!!
Ouch. Time to have a meeting with the IT guys, your supervisor or manager, and the users stuck with this bad decision.
Unfortunately, I know of no way to "catch" an impending disconnect. Sort of like "catching" any random event. How would you know it's going to happen until it's happened.
Moreover, Access is very intolerant of even minor network fluctuations, which is one reason Wireless networks are highly discouraged when Access is involved.
The newer versions of Access do have more robust ODBC handling, but it's not fool-proof.
What you could try is to set up a timer than hits a linked table, or runs a pass thru query at intervals frequently enough to reset their network time out and forestall the disconnect.
But in the long run, the solution is going to be establishing communications at a sufficiently high level to make sure the network people understand the problems they are causing for users. And, hopefully, getting them to see the error of their way.