Bullsandbears123
Technical User
I have a table that I use to schdule tasks.
[Task] {date] [Howoften]
What I'm trying to do is change the [date] field to the next time the event will run.
Example:
[howoften] has a list : daily, m-f , weekly, monthly,yearly
When one is chosen I need a function to change [date] to the next time the task needs to run. I understand how to do it yearly(date+365), weekly(date+7), daily(date+1),etc., but my problem is running it monthly on the last day of the month. Because some months have 31 days 30 days 28 days it goofs me up. If I put (date+30) it might not be on the last day every month. Any and all ideas are welcome. THanks you.
YOUR HELP IS VERY MUCH APPRECIATED!!!
PS. I use a schduled task that runs daily that looks up a table and run any task for the day dependent on the [date] field. I then need to change the date field for the next time. I have a lot of events that change all the time, so using task scheduler on an individual basis would confuse the people using the GUI I designed.
THANKS AGAIN!
[Task] {date] [Howoften]
What I'm trying to do is change the [date] field to the next time the event will run.
Example:
[howoften] has a list : daily, m-f , weekly, monthly,yearly
When one is chosen I need a function to change [date] to the next time the task needs to run. I understand how to do it yearly(date+365), weekly(date+7), daily(date+1),etc., but my problem is running it monthly on the last day of the month. Because some months have 31 days 30 days 28 days it goofs me up. If I put (date+30) it might not be on the last day every month. Any and all ideas are welcome. THanks you.
YOUR HELP IS VERY MUCH APPRECIATED!!!
PS. I use a schduled task that runs daily that looks up a table and run any task for the day dependent on the [date] field. I then need to change the date field for the next time. I have a lot of events that change all the time, so using task scheduler on an individual basis would confuse the people using the GUI I designed.
THANKS AGAIN!