J
jeff1970
I have the following loop:
Do Until <something happens>
Do Events
Sleep 50 'refers to Private Declare Sub sapiSleep Lib "kernel32"
Loop
I added Sleep because I don't like 100% CPU usage that DoEvents alone would
cause (e.g., because of overheating in my dynamically switched Centrino).
Written as above, the CPU usage is almost 0, and all my other Access windows
still react to my clicks. But the calculated controls in other windows now
take FOREVER to calculate
Is there a way to do something like "DoEvents 1000", which would let the
rest of Access and OS to do what it wants for 1000 milliseconds, and only
THEN return control back to the current subroutine?
Thank you!
Do Until <something happens>
Do Events
Sleep 50 'refers to Private Declare Sub sapiSleep Lib "kernel32"
Loop
I added Sleep because I don't like 100% CPU usage that DoEvents alone would
cause (e.g., because of overheating in my dynamically switched Centrino).
Written as above, the CPU usage is almost 0, and all my other Access windows
still react to my clicks. But the calculated controls in other windows now
take FOREVER to calculate
Is there a way to do something like "DoEvents 1000", which would let the
rest of Access and OS to do what it wants for 1000 milliseconds, and only
THEN return control back to the current subroutine?
Thank you!