Date Function needed to pull most current date - - URGENT

D

Danny

Ok. I have a query that pull payment information which
includes: payment code (i.e. 701), date, amt, etc. The
payment codes are specific to my criteria, however if
there is a recent payment infront of my desired pymtcode
(701), then I don't want to pick it up.

I.E. I don't want to pick up this record because there
is a most recent payment.

date pymtcode amt
8/18/03 701 25.00
8/30/03 510 50.00

However, I DO want to pick up this record because it meets
both criterias. (Criteri being: most recent date &
specific payment code)

date pymtcode amt
8/18/03 510 50.00
8/30/03 701 25.00

Thank you in advance.
 
J

John Verhagen

As the date criteria, put:
DMax("[Date]","tblXXX","[ID]=" & [ID])
where ID is the ID associated with your payments, and tblXXX is the name of
your table.
 

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