I have a query that I am trying to get my employees weekly hours running sum. That way I can seperate the overtime hours and properly calculate profits. I am using a dsum() to add employee time if it is the same week number.
I am not getting any results for Running total.
I am modeling this from this example:
I am not getting any results for Running total.
Code:
Running Total: DSum("[time]","Profit Breakdown 1","[Week] = " & [week number] & " And DatePart('d', [Date]) <= " & [ddate] & "")
Code:
Week number: Format([date],"ww")
Code:
Week: Format([Date],"ww")
Code:
ddate: DatePart('d',[date])
Comment