Gasman
Enthusiastic Amateur
- Local time
- Today, 11:41
- Joined
- Sep 21, 2011
- Messages
- 16,230
Worked for me? 
Perhaps due to your date delimiters?
If I use yours I get.
So change the code to match your date format.
Could try a universal format?

Perhaps due to your date delimiters?
If I use yours I get.
So change the code to match your date format.

Could try a universal format?
Code:
SELECT tblPayment.PaymentID, tblPayment.PaymentDate, DMax("PaymentDate","tblPayment","PaymentDate < #" & Format$([PaymentDate],"yyyy-mm-dd") & "#") AS PrevPaymentDate, Nz(DateDiff("d",DMax("PaymentDate","tblPayment","PaymentDate < #" & Format$([PaymentDate],"yyyy-mm-dd") & "#"),[PaymentDate]),0) AS [Difference(days)]
FROM tblPayment;