ontime /late report from audit latest date

Ok, here it is:

Code:
SELECT Issues.ARNO, Issues.Dateclosed, IIf(IsNull([TargetDate-First]),[TargetDate],[TargetDate-First]) AS TargetDateToUse, IIf(IsNull([DateClosed]),DateDiff("d",Date(),[TargetDateToUse]),DateDiff("d",[Dateclosed],[TargetDateToUse])) AS [Days-Diff]
FROM Issues LEFT JOIN qry_01_FirstValue ON Issues.ARNO = qry_01_FirstValue.RecordID;

The above produces the following:

32936054698_84c8806dca_b.jpg


I've also uploaded the file.
 

Attachments

thank you to you all ,

eassytee

that's exactly what I wanted . I tried many ways to get that with everyones ideas , never in a month of sundays would I have got that


thanks again steve
 

Users who are viewing this thread

Back
Top Bottom