topdesk123
Programmer
Hello all!
I have a query that contains a running total for employee hours (RunTot: (DSum("acttime","time card hours","[TimeCardDetailID]<=" & [TimeCardDetailID] & "")). The problem is, it continues to run the total for every employee - instead of for EACH employee. For example, John Smith worked a total of 45 hours - Jack Schmidt worked a total of 30 hours - but the running total shows that Jack worked 75 hours instead of 30.
My tables are: Time Cards and Time Card Details. Time Cards includes EmployeeID; TimeCardID; and DateEntered.
Time Card Details includes: TimeCardID; TimeCardDetailsID; DateWorked; StartTime; EndTime; ActTime; Phase; ProjectID; Amount (the hourly amount paid for that particular job).
Can anyone help me please?
Thank you in advance.
topdesk123
I have a query that contains a running total for employee hours (RunTot: (DSum("acttime","time card hours","[TimeCardDetailID]<=" & [TimeCardDetailID] & "")). The problem is, it continues to run the total for every employee - instead of for EACH employee. For example, John Smith worked a total of 45 hours - Jack Schmidt worked a total of 30 hours - but the running total shows that Jack worked 75 hours instead of 30.
My tables are: Time Cards and Time Card Details. Time Cards includes EmployeeID; TimeCardID; and DateEntered.
Time Card Details includes: TimeCardID; TimeCardDetailsID; DateWorked; StartTime; EndTime; ActTime; Phase; ProjectID; Amount (the hourly amount paid for that particular job).
Can anyone help me please?
Thank you in advance.
topdesk123