I am creating a database for workorders and keeping time. I have everything the way I want it except for a way to track that managers time. They managers time is split up equally between all workorders that his crew has put time on that day. For example if they crew worked 100 hours on June 21st and they worked 15 hours on Workorder 1, 15% of the managers time would be applied to workorder 1. Siminarly if they worked 25 hours on workorder 2 on the 21st then 25% of the managers time is applied to workorder 2.
I can do this using excel but it is a pain to export the data from access and then go back in access and add time to each of the workorders for the manager. (This is a large scale operation and there are often times 25-35 workorders per day.
Is there a way to use VBA to add up the crews total time for the day, divide by each workorder to see the % of time worked on each workorder for the day and then create a record for the manager with that percentage of his time? The manager is identified by the WWID field.
I know its a little complicated (or at least it seems that way to me). I really appreciate your help.