setting CommandTimeout for CurrentProject.Connection

D

Daniel

Hi,

I need to increase CommandTimeout but cant do this with
CurrentProject.Connection object.
The following code i tryed is:

CurrentProject.Connection.CommandTimeout = 90
CurrentProject.OpenConnection ConnStr, UserName, pwd

This doesn't do the job.
I also tried this -

CurrentProject.Connection.CommandTimeout = 90
CurrentProject.Connection.ConnectionString = ConnStr
CurrentProject.OpenConnection

nothing works.... :-(
 
Top