Delay in code processing

M

Mike

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!
 
Top