Is there an equivalent to Thread.Sleep() in Access VBA?
Thread.Sleep()
If you use Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long), you may get this error in an object module.
Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)
If so, you can declare it as private:
Private Declare Sub Sleep Lib "kernel32" (ByVal dwMilliseconds As Long)