HillTJ
To train a dog, first know more than the dog..
- Local time
- Yesterday, 18:01
- Joined
- Apr 1, 2019
- Messages
- 731
Hi,
I wish to introduce a 'sleep' routine into one of my forms as follows. When I run the sleepsec function I get the abovementioned error. I've done some googling and it appears that ' kernel32' is not installed. I ran chkdsk in the hope of refreshing all drivers, but still get same error message. I'm running Access64bit on 64bit Windows360. Any Clues?
I wish to introduce a 'sleep' routine into one of my forms as follows. When I run the sleepsec function I get the abovementioned error. I've done some googling and it appears that ' kernel32' is not installed. I ran chkdsk in the hope of refreshing all drivers, but still get same error message. I'm running Access64bit on 64bit Windows360. Any Clues?
Code:
Option Compare Database
Option Explicit
#If VBA7 Then
Public Declare PtrSafe Sub sleep Lib "kernal32" (ByVal dwmilliseconds As Long)
#Else
Public Declare Sub sleep Lib "kernal32" (ByVal dwmilliseconds As long)
#End If
Public Function sleepsec(numSec As Integer) ' convert milliseconds to seconds
Dim x As Integer
For x = 1 To numSec
sleep 1000
Next
End Function