Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 67
Default Timeout Error

How can I override an odbc Timeout error while using ADO to open a DB? I am
trying to open a connection and it is timing out on the server.......


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Timeout Error

Surely, you need to investigate why you get a timeout and fix that?

--

HTH

RP
(remove nothere from the email address if mailing direct)


"ibeetb" wrote in message
...
How can I override an odbc Timeout error while using ADO to open a DB? I

am
trying to open a connection and it is timing out on the server.......




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 593
Default Timeout Error

"ibeetb" wrote ...

How can I override an odbc Timeout error while using ADO to open a DB? I am
trying to open a connection and it is timing out on the server


Do you mean:

Dim lngError As Long

On Error Resume Next
Con.Open
lngError = Err.Number
On Error GoTo 0

Select Case lngError
' ...
?

You may also want to consider changing the Connection object's
ConnectionTimeout property.

Jamie.

--
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Calculate (F9) - Timeout BR Excel Discussion (Misc queries) 1 March 11th 09 06:19 PM
TImeIn-TimeOut-TimeIn-TimeOut-HoursWorked ChefBoiRD Excel Worksheet Functions 3 September 20th 05 10:01 AM
Timeout problems DavidC[_2_] Excel Programming 2 August 19th 04 02:09 AM
COM server timeout Erich Neuwirth Excel Programming 0 July 6th 04 09:40 AM
Timein-Timeout Jim Stewart Excel Programming 2 September 1st 03 09:49 AM


All times are GMT +1. The time now is 12:42 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"