<< Look in the help for the timer control you can do this kind of work by using this control.
from the help:--> -The Timer control, invisible to the user, is useful for background processing. A typical use for the timer is checking the system clock to determine if it is time to run a program or application.