Access/VBA Library

Sleep

API: Suspends execution for a period of time

Syntax

Sleep( milliseconds )
Parameters
Name Type Description
milliseconds Long Required. Number of milliseconds to suspend execution.
Code
Declare Sub Sleep Lib "kernel32" (ByVal milliseconds As Long)

Remarks

  • For Windows 64-bit add the PtrSafe keyword.