C
cporter
I have a query where I need to count the number of times a record field
(ontime) is 1 and the total number of records in the query. What is the
best way to do this?
SELECT tblPMTemp.MACHID, tblPMTemp.PROCNO, tblPMTemp.FREQ,
tblPMTemp.DLP, IIf([DLP]+[FREQ]+14<=Date(),1,0) AS Ontime
FROM tblPMTemp
WHERE (("KLA"=Left([machid],3)));
(ontime) is 1 and the total number of records in the query. What is the
best way to do this?
SELECT tblPMTemp.MACHID, tblPMTemp.PROCNO, tblPMTemp.FREQ,
tblPMTemp.DLP, IIf([DLP]+[FREQ]+14<=Date(),1,0) AS Ontime
FROM tblPMTemp
WHERE (("KLA"=Left([machid],3)));