Re: Access - Sleep function
From: Wayne Morgan (comprev_gothroughthenewsgroup_at_hotmail.com)
Date: 11/19/04
- Next message: Oded Kovach: "Importing From excel"
- Previous message: Jeff Boyce: "Re: Key Violation Question"
- In reply to: ceeuk: "Access - Sleep function"
- Next in thread: Wayne Morgan: "Re: Access - Sleep function"
- Reply: Wayne Morgan: "Re: Access - Sleep function"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 19 Nov 2004 07:20:18 -0600
For the Sleep command to work while using Shell, the loop that does the
checking will need to be in VBA, calling Shell each time you loop. If you
place the loop in a batch file (or whatever you're calling from Shell) then
you will need to put the pause there instead. If it is a batch file that
you're calling, there are some Dos utilities that will do what you ask. They
are tiny and can probably be found as a free download. They work similar to
Sleep. One I have used is called Wait.com. To use it the syntax is simply
(wait 1000).
-- Wayne Morgan MS Access MVP "ceeuk" <ceeuk@discussions.microsoft.com> wrote in message news:DEBE7383-5287-45B4-8B93-52B3CBFA2C43@microsoft.com... > how can I make an access function 'sleep' for a short period. I want to > check the results of a query, process them, then wait for a short period > (e.g. 20 seconds) before checking the query results again. I've looked at > using the windows 'sleep' command but access issues the shell command > asychronously so that won't work. Has anyone else had a similar problem?
- Next message: Oded Kovach: "Importing From excel"
- Previous message: Jeff Boyce: "Re: Key Violation Question"
- In reply to: ceeuk: "Access - Sleep function"
- Next in thread: Wayne Morgan: "Re: Access - Sleep function"
- Reply: Wayne Morgan: "Re: Access - Sleep function"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|