Application.Wait

  • Thread starter Thread starter JON JON
  • Start date Start date
J

JON JON

Hello NG,

Is the Wait Method not supported in Access? Any workaround? Please note
that I can not use the onTimer event since I will be using the method within
a loop code somewhat like:

For i = 1 to 10
'my code here
Application.Wait Now() + Timeserial (0,0,1)
next i

TIA
 
Jon,

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

Then somewhere in your code:
Sleep 1000 ' =1 second (1000 milliseconds)

Regards,
Graham R Seach
Microsoft Access MVP
Canberra, Australia
 
That's great! Thanks.

Graham R Seach said:
Jon,

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

Then somewhere in your code:
Sleep 1000 ' =1 second (1000 milliseconds)

Regards,
Graham R Seach
Microsoft Access MVP
Canberra, Australia
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top