Function hhmm(h As Single)
hhmm = Format(Int(h), "00") & ":" & Format(Int((h - Int(h)) * 60), "00")
End Function
2、以原交叉查询为基础,做一选择查询:
SELECT qryGrLb.工序, qryGrLb.操作工, hhmm(nz([总计 工时],0)) AS 总计, hhmm(nz(qryGrLb.刨普通,0)) AS 刨普通, hhmm(nz(qryGrLb.刨下模,0)) AS 刨下模, hhmm(nz(qryGrLb.普通,0)) AS 普通
FROM qryGrLb;