Hello all,
I have a challenge that I'm hoping has an easy solution?
I've created a work schedule table, from which I'd like to extract information to create a payroll list every two weeks. I also need to keep monthly stats with the information. The complicated part is that a night shift is split into 2 days: Evening (4.00 hrs) and Night (7.25 hrs). In order to make data entry easier, I just want the user to enter "NS" for night shift on the date the shift begins.
I initially used code that checks for the "NS", then changes the "NS" to "E" (4.00 hrs)and then adds a new record with the next date and "N" (7.25 hrs). This works fine, but during my "dummy-proofing" check, I realized that if the user decides to delete or change one of the split records, it will leave the other part there and thus create inaccuracies in the payroll. Also, it looks messy when the nights are split and you're trying to look back at who worked which night.
I guess my question is: after all data has been entered, how can I take the data from my table, split all the night shifts into 2 parts, choose a date range, then save the information into a new table? Or is there a better way to do all this that I can't see?
Thank you in advance.
I have a challenge that I'm hoping has an easy solution?
I've created a work schedule table, from which I'd like to extract information to create a payroll list every two weeks. I also need to keep monthly stats with the information. The complicated part is that a night shift is split into 2 days: Evening (4.00 hrs) and Night (7.25 hrs). In order to make data entry easier, I just want the user to enter "NS" for night shift on the date the shift begins.
I initially used code that checks for the "NS", then changes the "NS" to "E" (4.00 hrs)and then adds a new record with the next date and "N" (7.25 hrs). This works fine, but during my "dummy-proofing" check, I realized that if the user decides to delete or change one of the split records, it will leave the other part there and thus create inaccuracies in the payroll. Also, it looks messy when the nights are split and you're trying to look back at who worked which night.
I guess my question is: after all data has been entered, how can I take the data from my table, split all the night shifts into 2 parts, choose a date range, then save the information into a new table? Or is there a better way to do all this that I can't see?
Thank you in advance.