K
Karen
Guest
I want to be able to take the date of production from the previous record and add 1 day to it.
I have a production schedule that states employee A is working 8 hours and making X products for Jan.29-Feb.15 (Or whatever dates he is booked for). The problem happens when he falls behind estimated production. I need to be able to update the days scheduled by however many days he is behind. Easy - except that I need to skip weekends and holidays. What I have been trying is the datepart()function to bring back the weekday, if 7 add additional 2 days, if 1 add addition 1 day. Unfortunatly this causes the person to be scheduled for more than 8 hours work for one day, and causes some days to be missed.
So I think that if I can just add 1 to the previous record (unless Sat. or Sun.) I would be OK. Any suggestions will help. I am relatively new to code.
KAren
I have a production schedule that states employee A is working 8 hours and making X products for Jan.29-Feb.15 (Or whatever dates he is booked for). The problem happens when he falls behind estimated production. I need to be able to update the days scheduled by however many days he is behind. Easy - except that I need to skip weekends and holidays. What I have been trying is the datepart()function to bring back the weekday, if 7 add additional 2 days, if 1 add addition 1 day. Unfortunatly this causes the person to be scheduled for more than 8 hours work for one day, and causes some days to be missed.
So I think that if I can just add 1 to the previous record (unless Sat. or Sun.) I would be OK. Any suggestions will help. I am relatively new to code.
KAren