I have the following module for testing:
It hangs and never returns on the line Sleep 500. Any ideas? I can't seem to find any recent posts anywhere and this appears to have just started recently.
I tried changing 500 to one and still had no return from sleep.
Code:
Option Compare Database
Option Explicit
Public Declare Sub Sleep Lib "kernel32" (ByValdwMilliseconds As Long)
Sub Tester()
Debug.Print Now
Sleep 500
Debug.Print Now
End Sub
It hangs and never returns on the line Sleep 500. Any ideas? I can't seem to find any recent posts anywhere and this appears to have just started recently.
I tried changing 500 to one and still had no return from sleep.