Hi,
I am pulling data from a cashe database on Windows XP workstation using Crystal 10.
I am modifying a productivity report ran by my company on a monthly basis. I am tasked with granting new staff and staff moving to new positions a grace period. The grace period for new staff is 2 weeks and the grace period for moving staff is 1 week. The grace period will begin on there employment start date or the start date of there new position. I need to count from there start date to the end of the grace period taking into consideration holidays, weekends and were the start date is in relation to the month the date starts in. For example, if the start date is 3/22/2006 and this is a new staff person then on the March productivity this staff should get credit for 8 days (64 hrs), also when the productivity is run in April this same staff should get credit for the remaining 6 days (48 hrs). I would determine whether the staff is a new staff by checking the start date. if there is no previous(startdate). I will determine a moved staff similarly, if not isnull(next(startdate) then moved staff.
I am unsure how to count the dates and take into consideration if days will roll over from a previous month. Any help will be great.
I am pulling data from a cashe database on Windows XP workstation using Crystal 10.
I am modifying a productivity report ran by my company on a monthly basis. I am tasked with granting new staff and staff moving to new positions a grace period. The grace period for new staff is 2 weeks and the grace period for moving staff is 1 week. The grace period will begin on there employment start date or the start date of there new position. I need to count from there start date to the end of the grace period taking into consideration holidays, weekends and were the start date is in relation to the month the date starts in. For example, if the start date is 3/22/2006 and this is a new staff person then on the March productivity this staff should get credit for 8 days (64 hrs), also when the productivity is run in April this same staff should get credit for the remaining 6 days (48 hrs). I would determine whether the staff is a new staff by checking the start date. if there is no previous(startdate). I will determine a moved staff similarly, if not isnull(next(startdate) then moved staff.
I am unsure how to count the dates and take into consideration if days will roll over from a previous month. Any help will be great.