There is a connection with the base, I can not catch the error - "Connection Error". When the network is disconnected, the test for the fall of the router.
on E: EOleException do begin // Не верный путь к БД if (E.ErrorCode=-2147467259) then ADOConnection1.Connected := false; ADOConnection1.KeepConnection := false; ADOConnection1.Close(); if messageDlg('Неверный путь к БД или сервер не отвечает! Запустить мастер подключения?', mtConfirmation, [mbYes, mbNo], 0) = mrYes then begin SettingDB.Show; end;