tsroque
Board Regular
- Joined
- Jan 19, 2007
- Messages
- 127
- Office Version
- 365
I'm working on a Timesheet database where I have a WeekEnding Form with a subform_Time linked to it. This form is then linked to an employee (subform within a subform type set up).
In the subform_Time I have the following fields:
- DateWorked
- TimeIn (format: Med Time HH:MM)
- LunchOut (format: Med Time HH:MM)
- LunchIn (format: Med Time HH:MM)
- TimeOut (format: Med Time HH:MM)
- Total Lunch Hrs in formate mm
- Total Hrs Worked (for the day) displays as hh:mm (Field Name: Worked)
All the above works great but I need a SUM field to add up the total HH:MM for the x-number of dates I enter for that employee for that WeekEnding. So at the bottom, I need the Total Hrs Worked summed up in the format hh:mm so I can then calculate total overtime due in formate hh:mm in another field.
The difference between TimeIn/LunchOut and LunchIn/TimeOut is calculated in a Query to give me the amount in WORKED field. There are never a set number of days in a Weekending record. Some guys may clock in and out twice that day if on call, etc...
When I use the simple SUM function, it gives me an error. Can anyone help me with this? My Access is soooooo rusty!!!
In the subform_Time I have the following fields:
- DateWorked
- TimeIn (format: Med Time HH:MM)
- LunchOut (format: Med Time HH:MM)
- LunchIn (format: Med Time HH:MM)
- TimeOut (format: Med Time HH:MM)
- Total Lunch Hrs in formate mm
- Total Hrs Worked (for the day) displays as hh:mm (Field Name: Worked)
All the above works great but I need a SUM field to add up the total HH:MM for the x-number of dates I enter for that employee for that WeekEnding. So at the bottom, I need the Total Hrs Worked summed up in the format hh:mm so I can then calculate total overtime due in formate hh:mm in another field.
The difference between TimeIn/LunchOut and LunchIn/TimeOut is calculated in a Query to give me the amount in WORKED field. There are never a set number of days in a Weekending record. Some guys may clock in and out twice that day if on call, etc...
When I use the simple SUM function, it gives me an error. Can anyone help me with this? My Access is soooooo rusty!!!
Last edited: