Re: delaying an event for several seconds

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Try using the API Sleep function. There's code to call it from VBA at the
following URL ...

http://www.mvps.org/access/api/api0021.htm

--
Brendan Reynolds
Access MVP

"jonefer" <jonefer@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:4D6C80E6-04B1-455F-B5A6-BCD91B9A1E89@xxxxxxxxxxxxxxxx
I'd like to delay the event of a command button for several seconds so
that I
can focus my cursor onto another window of another app.

Is it possible to set a delay without a timer event that cycles?
if so -- any suggestions?

Also - when the event runs - will it re-focus back to the form that calls
it?


.


Quantcast