msvisual.com Forum Index
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

ODBC Time-Out

 
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax
Author Message
wnfisba



Joined: 04 Oct 2007
Posts: 2

PostPosted: Thu Jun 22, 2006 8:09 pm    Post subject: ODBC Time-Out Reply with quote

I have a SQL Query, an Access Pass-Through query that I have built in VB
within Access. It is timing out. Can anyone provide me the VBA syntax for
setting the ODBC timeout???

Any help would be GREATLY appreciated.

Thanks!

wnfisba

Archived from group: microsoft>public>vb>syntax
Back to top
View user's profile Send private message
Richard Mueller



Joined: 04 Oct 2007
Posts: 15

PostPosted: Thu Jun 22, 2006 11:26 pm    Post subject: Re: ODBC Time-Out Reply with quote

"wnfisba" wrote in message @microsoft.com...
>I have a SQL Query, an Access Pass-Through query that I have built in VB
> within Access. It is timing out. Can anyone provide me the VBA syntax for
> setting the ODBC timeout???
>
> Any help would be GREATLY appreciated.
>
> Thanks!
>
> wnfisba

The Command object has a CommandTimeout property. The default is 30 seconds:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdprocommandtimeout.asp

This link may also help:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/searching_with_activex_data_objects_ado.asp

--
Richard
Microsoft MVP Scripting and ADSI
Hilltop Lab - http://www.rlmueller.net
Back to top
View user's profile Send private message
Jeff Johnson



Joined: 04 Oct 2007
Posts: 1327

PostPosted: Fri Jun 23, 2006 1:46 pm    Post subject: Re: ODBC Time-Out Reply with quote

"Richard Mueller" wrote in message @TK2MSFTNGP02.phx.gbl...

>>I have a SQL Query, an Access Pass-Through query that I have built in VB
>> within Access. It is timing out. Can anyone provide me the VBA syntax for
>> setting the ODBC timeout???
>>
>> Any help would be GREATLY appreciated.
>>
>> Thanks!
>>
>> wnfisba
>
> The Command object has a CommandTimeout property. The default is 30
> seconds:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdprocommandtimeout.asp
>
> This link may also help:
>
> http://msdn.microsoft.com/library/default.asp?url=/library/en-us/adsi/adsi/searching_with_activex_data_objects_ado.asp

And those links are about ADO, which doesn't apply to Access's QueryDef
objects.

This question should be asked in an Access newsgroup. I recommend
microsoft.public.access.modulesdaovba. This group is for the full,
standalone version of VB.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    msvisual.com Forum Index -> VB Syntax All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group