I have a project that I need to be able to sum a short time field. does anyone know how I can do that?
I did try a query but it is not working
SQL:
[imgnothumb]https://bytes.com/attachments/attachment/9784d1541019252/2018-10-30_14-29-28.jpg[/imgnothumb]
I did try a query but it is not working
SQL:
Code:
SELECT (Sum(DatePart("h",[ActualLaborHours])*3600 + DatePart("n",[ActualLaborHours])*60)) AS TotalSeconds, Round([TotalSeconds]/3600,0) & ':' & Right("00" & Round(((TotalSeconds/3600) - Round(TotalSeconds/3600,0))*60,0),2) AS TotalTime FROM [Maximo Report] WHERE ((([Maximo Report].WorkType)="CM" Or ([Maximo Report].WorkType)="EM" Or ([Maximo Report].WorkType)="MMNRO" Or ([Maximo Report].WorkType)="MMROI" Or ([Maximo Report].WorkType)="PMCM" Or ([Maximo Report].WorkType)="PMINS" Or ([Maximo Report].WorkType)="PMOR" Or ([Maximo Report].WorkType)="PMPDM" Or ([Maximo Report].WorkType)="PMREG" Or ([Maximo Report].WorkType)="PMRT") AND (([Maximo Report].ActualStartDate) >= DateAdd("h",-1,[Enter the Start Date]) And ([Maximo Report].ActualStartDate) < DateAdd("h",23,[Enter the End Date])));
Comment