Re: Recordset Timeout
- From: "MikeD" <nobody@xxxxxxxxxxx>
- Date: Thu, 11 Oct 2007 09:34:09 -0400
"Bob Butler" <noway@xxxxxxxxxxx> wrote in message
news:%23LZEefADIHA.536@xxxxxxxxxxxxxxxxxxxxxxx
"hon123456" <peterhon321@xxxxxxxxxxxx> wrote in message
news:1192094403.442336.60640@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Dear all,
I am running a Recordset open statement. It prompts error
2147217871 timeout expired.
The following is my statement. How can I set rst.open timeout for
infinity. I cannot find a timeout
property for the Resordset Object.
rst.Open Source:=strsql, ActiveConnection:=cnn, Options:=adCmdText
try setting cnn.commandtimeout
I'm not sure, but I don't think that applies to a Recordset object, nor will
a Recordset object inherit it (the docs clearly state that a Command object
doesn't) . According to the documentation I have, it's for a Connection
object or Command object only. However, you could do this:
cnn.CommandTimeOut = 0
Set rst = cnn.Execute(strsql)
--
Mike
Microsoft MVP Visual Basic
.
- References:
- Recordset Timeout
- From: hon123456
- Re: Recordset Timeout
- From: Bob Butler
- Recordset Timeout
- Prev by Date: Re: Recordset Timeout
- Next by Date: Re: File Streams
- Previous by thread: Re: Recordset Timeout
- Next by thread: Re: Recordset Timeout
- Index(es):
Relevant Pages
|