have a table with three fields: Parcel,date of sale, and most recent.
Want to cycle thru records, and flag the most recent sale for a single
parcel id.
Know logically how to do how I'd do it... but need advice on best way to
open table and loop thru it...
Is there a good reason for your application to store a value that can be
calculated in a query?
You can use
SELECT Parcel, Max([DateOfSale]) as MostRecent
FROM tblWithThreeFields
GROUP BY Parcel;

Signature
Duane Hookom
MS Access MVP
--
> have a table with three fields: Parcel,date of sale, and most recent.
>
[quoted text clipped - 3 lines]
> Know logically how to do how I'd do it... but need advice on best way to
> open table and loop thru it...
florida fumbler - 18 Jan 2006 14:01 GMT
tried building an access query but there does not seem to be a "MAX" function
that will work on a date ... would appreciate any help with this
> Is there a good reason for your application to store a value that can be
> calculated in a query?
[quoted text clipped - 10 lines]
> > Know logically how to do how I'd do it... but need advice on best way to
> > open table and loop thru it...
Duane Hookom - 19 Jan 2006 02:16 GMT
I don't know why you would think Max would not be available for date fields.
Did you get an error message?

Signature
Duane Hookom
MS Access MVP
--
> tried building an access query but there does not seem to be a "MAX"
> function
[quoted text clipped - 15 lines]
>> > to
>> > open table and loop thru it...