Timeout Error

  • Thread starter Thread starter ibeetb
  • Start date Start date
I

ibeetb

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.......
 
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 said:
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.

--
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top