kristy0330
New member
- Local time
- Yesterday, 19:38
- Joined
- Nov 28, 2018
- Messages
- 1
I have a timesheet form which the user selects a date to post time against and a subform where they record daily transactions for multiple employees. I would like to display on the form or subform a daily subtotal of ST hours for the current employee selected and a weekly subtotal of ST hours. Currently, I am only able to get it to subtotal daily ST Hours for all employees keyed to that day.
Control Source for my subtotal field txtDailyST
=DSum("[tcDailyST]","[qryDailyHours]","[tcEmployeeID]='" & [tcEmployeeID] & "'" & " And [tcDate]= '" & [tcDate] & "'")
I also tried something like.. =IIf(([tcEmployeeID]=[tcEmployeeID]) And ([tcDate]=[TcDate]),Sum([tcSTHours]),"0.00")
Help!
Control Source for my subtotal field txtDailyST
=DSum("[tcDailyST]","[qryDailyHours]","[tcEmployeeID]='" & [tcEmployeeID] & "'" & " And [tcDate]= '" & [tcDate] & "'")
I also tried something like.. =IIf(([tcEmployeeID]=[tcEmployeeID]) And ([tcDate]=[TcDate]),Sum([tcSTHours]),"0.00")
Help!