Before I ask that you attach a sanitised copy of your database I'd just ask you to try one further thing for me.
Please create an extra field in your query that reflects the number of days calculated, just as used in the WHERE clause :
It will be easier then to determine which records are failing the check and why.
Please create an extra field in your query that reflects the number of days calculated, just as used in the WHERE clause :
Code:
SELECT ... , [FPYD] , [DOFD] , DateDiff('d', CDate(Format(Nz([FPYD],''),'&&/&&/&&')), CDate(Format(Mid(Nz([DOFD],'99991231'),5,4),'&&/&&/') & Left(Nz([DOFD],'9999'),4))) AS DaysDiff , ...
Comment