Quantcast
Channel: VBForums - Database Development
Viewing all articles
Browse latest Browse all 2918

[RESOLVED] Need query to get only last record of a customer from his/her total records ...

$
0
0
Hi,

I have a table "Reciepts_Table" in MS Access Database where I stored the information of received amount from all customers. I can extract all the records that customers paid to date in a report. But what I need is, instead of all records I only want to see the last record of each customer so that I can understand when the customer last paid.

This is the query that I am using right now:

Select CustomerName, ReceiptNumber, ReceiptDate, AmountReceived from Receipts_Table ORDER BY ReceiptNumber.

How to modify the above query to get only the last record of each customer in a report.


Please support.
Attached Images
 

Viewing all articles
Browse latest Browse all 2918