LPARAMETERS nError, cMethod, nLine DO CASE CASE nError = 1466 AND This.nErrorNum <> 1466 IF This.Connect(This.cConnectString) This.nErrorNum = nError RETRY ENDIF ENDCASEThe basic idea is that when a call inside of this class runs into an invalid connection handle error, it attempts to re-connect to the server. If it works, great, if it fails again it stops trying (so it doesn't get locked in a loop).You could probably do something similar for the 1526 error. The only "trick" in making this work would be to make sure that you call this class and let it USE your view for you instead of using it directly.