dudup
asked on
Daily, Weekly, Monthly, Yearly
Hi,
What is the best way to create a procedure that will perform a task daily, weekly, monthly and yearly ?
I assume that daily will be performed right after midnight, weekly will be performed on monday morning after sunday midnight, monthly will be performed after end of month, yearly will be performed after end of december.
Thanks
What is the best way to create a procedure that will perform a task daily, weekly, monthly and yearly ?
I assume that daily will be performed right after midnight, weekly will be performed on monday morning after sunday midnight, monthly will be performed after end of month, yearly will be performed after end of december.
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Schedule Tasks is integrated inside Windows some service of the operating system takes care of running your apps when you want it.
There is no application with a higher up-time then the operating system so why not use it to run your app.
The self written app does not have to stay up this way for more than a year. It just needs to get fired up by the operating system.
Regards Jacco
There is no application with a higher up-time then the operating system so why not use it to run your app.
The self written app does not have to stay up this way for more than a year. It just needs to get fired up by the operating system.
Regards Jacco
put a timer on form and check the time every second if the time is biger than 00:00 thats meens you need to check daily tasks and check isn't there end of week or end of month or end of year.
if DayOf(Now)= 1 then check weekly tasks
if MonthOf(Now)=1 then check yearly tasks
an so on.