ontime /late report from audit latest date (1 Viewer)

essaytee

Need a good one-liner.
Local time
Today, 21:46
Joined
Oct 20, 2008
Messages
512
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:



I've also uploaded the file.
 

Attachments

  • Audit-Log-essaytee-03.accdb
    940 KB · Views: 88

rainbows

Registered User.
Local time
Today, 04:46
Joined
Apr 21, 2017
Messages
425
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

Top Bottom