A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » General Discussion
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How to make code timeout after 20 seconds (prevent freezing)



 
 
Thread Tools Display Modes
  #1  
Old March 25th, 2010, 04:39 AM posted to microsoft.public.access
exebat[_2_]
external usenet poster
 
Posts: 14
Default How to make code timeout after 20 seconds (prevent freezing)

Hi all.

I tried searching but I can find any solution.

I have a code that reads some data from database, send it to other
application and waits for response. Since this other application (not
written by me) sometimes just wont respond, my program freezes.

How can I add some kind of timeout to my code so it would only wait
for about 10-20 seconds and if nothing happens it would stop the code ?
  #2  
Old March 25th, 2010, 01:55 PM posted to microsoft.public.access
GBA
external usenet poster
 
Posts: 174
Default How to make code timeout after 20 seconds (prevent freezing)

there is a timer function available in the form property. thus have a form
open and check out properties, and do a little research in this area....



"exebat" wrote:

Hi all.

I tried searching but I can find any solution.

I have a code that reads some data from database, send it to other
application and waits for response. Since this other application (not
written by me) sometimes just wont respond, my program freezes.

How can I add some kind of timeout to my code so it would only wait
for about 10-20 seconds and if nothing happens it would stop the code ?
.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 09:14 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.