Full Version: Most Recent Please!!!
UtterAccess Discussion Forums > Microsoft® Access > Access Date + Time
stl_tom
I have a db that tracks vins and when they were moved. There are 2 tables, one with all the history of a VIN (which includes the date/time stamp the unit was moved) and a second table that contains inventory information based on the last move made.

I have written a report to track units older than 24 hours but because I have to link to the VIN history table the report is pulling all of the records for each time the VIN was moved.

How can I pull the most recent record???

Thank you in advance for any assistance.
danishani
U can set the criteria of your datefield:

Max([YourDateField])

or

U can also use:

Last([YourDateField])

HTH
Daniel
stl_tom
Thanks for the help.
danishani
No problem, anytime frown.gif

Daniel
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.