The default timeout for drill-through is 30 seconds, which may not be
enough in your case. I believe that you can increase the timeout for the
ADO Connection object, though such code is not included in the MSDN
sample code below.
In my case, someone on this NewsGroup sent me an Excel add-in for
drill-through, which uses a larger timeout value. But if you want to
modify the sample code, this excerpt from an earlier post may give you
some clue:
Quote:
|
Have you tried the CommandTimeout property of the ADODB.Connection
|
object?
e.g.
Dim cnxC as ADODB.Connection
...
cnxC.CommandTimeout = 90 'In seconds. Default is 30 seconds, I
believe.
...
HTH,
Paul.
- Deepak
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!