I'm trying to get my teams set up hours and production hours for certain jobs called project jobs. I'm trying to get them broken down by the Date entered the Dept. then the work center. I am only getting the Hours of production for one run. If two shifts run the same job on the same day I'm only getting the hours of production for one shift to show up in my list box. Below is the code I'm trying to work with. Any help would be great!
strSQL = "SELECT [Date entered],[Department],[Machine area],[Part number] ,Sum([Hrs running prod] + [Hrs s/u time]) as [Total Hours Worked]" & _
" FROM QueryProjects" & _
" GROUP BY [Part Number],[Date entered],[Department],[Machine area]" & _
" ORDER BY [Date entered]DESC;"
Thanks, Rib
Bartender:Hey aren't you that rope I threw out an hour ago?
Rope:No, I'm a frayed knot.
strSQL = "SELECT [Date entered],[Department],[Machine area],[Part number] ,Sum([Hrs running prod] + [Hrs s/u time]) as [Total Hours Worked]" & _
" FROM QueryProjects" & _
" GROUP BY [Part Number],[Date entered],[Department],[Machine area]" & _
" ORDER BY [Date entered]DESC;"
Thanks, Rib
Bartender:Hey aren't you that rope I threw out an hour ago?
Rope:No, I'm a frayed knot.