Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored procedure timeout property

Status
Not open for further replies.

ddub

MIS
Jul 9, 2002
17
US
I have a form in an Access 2000 ADP that has a stored procedure as its recordsource. How do I increase the timeout period before the stored procedure times out?
 
Thanks Remou,

Your post gave me an idea and this is the code I put in the Open event of my form to make it work:

Dim cmd1 As ADODB.Command
Dim strSQL As String
Dim rs1 As ADODB.Recordset


Set cmd1 = New ADODB.Command
strSQL = "spFindDuplicatesPMP"
With cmd1
.ActiveConnection = CurrentProject.Connection
.CommandType = adCmdStoredProc
.CommandText = strSQL
.CommandTimeout = 300
End With

End If
Set rs1 = cmd1.Execute
Set Me.Recordset = rs1


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top