I have a query with many fields populated from a form with time entered in mins. I need to convert them into time in hrs.how would i do it? Below is the code for the query. I need to convert all the fields from the 4th field onwards into time in hrs.
Thanks
SELECT Format([Date01],'mm/dd') AS day, tblDowntimeTable.Shift AS Expr2, tblDowntimeTable.Line AS Expr3, tblDowntimeTable.[Defective Product], tblDowntimeTable.[CH/LD Change], tblDowntimeTable.[Fine Tuning], tblDowntimeTable.[Label Machine], tblDowntimeTable.[Product Change], tblDowntimeTable.[Roll count], tblDowntimeTable.Rotation, tblDowntimeTable.[Comp Control], tblDowntimeTable.[Start up], tblDowntimeTable.Equipment, tblDowntimeTable.[Long Breaks], tblDowntimeTable.[Re-ins/Re-work], tblDowntimeTable.Dabrico, tblDowntimeTable.[Morning meet], tblDowntimeTable.[Make boxes], tblDowntimeTable.[Bad components], tblDowntimeTable.Other
FROM tblDowntimeTable
GROUP BY Format([Date01],'mm/dd'), tblDowntimeTable.Shift, tblDowntimeTable.Line, tblDowntimeTable.[Defective Product], tblDowntimeTable.[CH/LD Change], tblDowntimeTable.[Fine Tuning], tblDowntimeTable.[Label Machine], tblDowntimeTable.[Product Change], tblDowntimeTable.[Roll count], tblDowntimeTable.Rotation, tblDowntimeTable.[Comp Control], tblDowntimeTable.[Start up], tblDowntimeTable.Equipment, tblDowntimeTable.[Long Breaks], tblDowntimeTable.[Re-ins/Re-work], tblDowntimeTable.Dabrico, tblDowntimeTable.[Morning meet], tblDowntimeTable.[Make boxes], tblDowntimeTable.[Bad components], tblDowntimeTable.Other
HAVING (((tblDowntimeTable.Shift)=1))
ORDER BY Format([Date01],'mm/dd');
Thanks
SELECT Format([Date01],'mm/dd') AS day, tblDowntimeTable.Shift AS Expr2, tblDowntimeTable.Line AS Expr3, tblDowntimeTable.[Defective Product], tblDowntimeTable.[CH/LD Change], tblDowntimeTable.[Fine Tuning], tblDowntimeTable.[Label Machine], tblDowntimeTable.[Product Change], tblDowntimeTable.[Roll count], tblDowntimeTable.Rotation, tblDowntimeTable.[Comp Control], tblDowntimeTable.[Start up], tblDowntimeTable.Equipment, tblDowntimeTable.[Long Breaks], tblDowntimeTable.[Re-ins/Re-work], tblDowntimeTable.Dabrico, tblDowntimeTable.[Morning meet], tblDowntimeTable.[Make boxes], tblDowntimeTable.[Bad components], tblDowntimeTable.Other
FROM tblDowntimeTable
GROUP BY Format([Date01],'mm/dd'), tblDowntimeTable.Shift, tblDowntimeTable.Line, tblDowntimeTable.[Defective Product], tblDowntimeTable.[CH/LD Change], tblDowntimeTable.[Fine Tuning], tblDowntimeTable.[Label Machine], tblDowntimeTable.[Product Change], tblDowntimeTable.[Roll count], tblDowntimeTable.Rotation, tblDowntimeTable.[Comp Control], tblDowntimeTable.[Start up], tblDowntimeTable.Equipment, tblDowntimeTable.[Long Breaks], tblDowntimeTable.[Re-ins/Re-work], tblDowntimeTable.Dabrico, tblDowntimeTable.[Morning meet], tblDowntimeTable.[Make boxes], tblDowntimeTable.[Bad components], tblDowntimeTable.Other
HAVING (((tblDowntimeTable.Shift)=1))
ORDER BY Format([Date01],'mm/dd');