We have a payroll system where we have a mainform that has a drop down of employee names. We select an employee from the drop down and it pulls up data in the subform for all their records entered in so far, and we can add more or delete from the subform. In the subform we enter the start and stop times, have a field that calculates total hours and stores this data into a table called payroll.
The thing that is lacking is something on the sub or main form that shows the total hours between all the records for that person, and updates everytime we add a new record so I can see not only how many hours worked that entry, but all together.
I made a query that calculates the total hours based on the current person selected, put that information on a subform, and added that subform to the main form, but it's only accurate when I change to another person and click back. I need it to be updated automatically and can't figure out how.
Thanks in advance for your help!
The thing that is lacking is something on the sub or main form that shows the total hours between all the records for that person, and updates everytime we add a new record so I can see not only how many hours worked that entry, but all together.
I made a query that calculates the total hours based on the current person selected, put that information on a subform, and added that subform to the main form, but it's only accurate when I change to another person and click back. I need it to be updated automatically and can't figure out how.
Thanks in advance for your help!