Query design help

G

Guest

Hi

I hope someone can help me with a query.

I have a table that records payments with the following fields: Debtor,
Transaction_Date, Amount (among others, but I'm trying to keep this post
simple).

I basically need a query that finds the most recent payment, ie. if a
debtor's last payment was $100 on 3 May, I need to be able to pull up just
this information and not any payments previous to this date. The problem is
that there are many payment entries for each debtor. I tried using the MAX
function (?), but that didn't seem to work, I was getting all payments for
some reason. I don't want a sum of the amount either, just the actual amount
relating to the last payment.

I hope I've made myself clear!

Regards
Winsa
 
G

Guest

Thanks heaps for referring me to that article. With a bit of tweaking, it
worked beautifully!!!

Thanks again!
Winsa
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top