Delay in code processing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is it possible to make a pause in the code? For example:

Private Sub Form_Timer()
Set db = CurrentDb
Set tbl = db.TableDefs("MyTable")
tbl.RefreshLink
Me.TextBox.Value = "Status: ONLINE"

<<<Here I want a 2-seconds delay in code processing >>>

DoCmd.Close
End Sub

Thank you in advance!
 

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