WorkHours is a computed field but comoputed from a date/time field.
This query computes my time difference from a function:
SELECT qryLogData.RealDate, qryLogData.ActualTime, qryLogData.ID, qryLogData.emp_name, NextRec([ActualTime]) AS LogOutTime, Format([LogOutTime]-[actualtime],"Short Time") AS TimeDiff
FROM qryLogData
WHERE (((qryLogData.status)=1))
ORDER BY qryLogData.RealDate, qryLogData.ActualTime;
This query takes that info in prep for my report and formats:
SELECT id, emp_name, realdate, Format(Sum(CDate(TimeDiff)),"Short Time") AS WorkHours
FROM CalculateTimeDiff
GROUP BY id, emp_name, realdate;
I tried to convert the time by multiplying by 24:
SELECT (WorkHours*24) AS ConvTime
FROM FormatCalTimeDiff;
So now I'm trying to compute the division of the time for productivity:
SELECT [rprt audit].auditorid, [rprt audit].date, count([rprt audit].[trailer number]) AS NOA, ([NOA])/([FormatCalTimediff].[WorkHours]) AS PROD
FROM [rprt audit], FormatCalTimeDiff
GROUP BY [rprt audit].auditorid, [rprt audit].date;