Is there an equivalent to Thread.Sleep() in VBA

后端 未结 8 1289
孤街浪徒
孤街浪徒 2020-12-01 13:38

Is there an equivalent to Thread.Sleep() in Access VBA?

8条回答
  •  难免孤独
    2020-12-01 14:31

    Declare Sub Sleep Lib "kernel32" Alias "Sleep" _
    (ByVal dwMilliseconds As Long)
    

    Use the following syntax to call the Sleep function:

    Sub Sleep()
    Sleep 1000 'Implements a 1 second delay
    End Sub 
    

提交回复
热议问题