Access treats "Date" and "Name" as reserved words, so what you get may not
be what you expect. First, change the title of those fields.
Next, "Name" implies that you are putting the entire name in the field. How
do you plan to sort by Last Name? One of the first rules of data
normalization is to put one fact in one field -- if you have FirstName and
LastName, you have two (and need two fields).
For each "Name", you'll have a maximum date (that part it sounds like you
already have). If you then create another query to find the maximum date
where it is NOT the maximum date from the first query, you'll have the
"next" most recent date.
Regards
Jeff Boyce
Microsoft Office/Access MVP
>I have a table that has the following fields:
> Date
[quoted text clipped - 25 lines]
> right before the Max Date?
> Thanks for any help you can give!
Clddleopard - 29 Jan 2007 22:30 GMT
Don't need to sort by last name--these are animals, with only a first name...
Could I get a little more detail on how to "create another query to find the
maximum date where it is NOT the maximum date from the first query, you'll
have the "next" most recent date."?
Thanks!
> Access treats "Date" and "Name" as reserved words, so what you get may not
> be what you expect. First, change the title of those fields.
[quoted text clipped - 43 lines]
> > right before the Max Date?
> > Thanks for any help you can give!
Jeff Boyce - 29 Jan 2007 22:41 GMT
Whether you have no firstname or lastname, naming your field "name" will
confuse Access.
The general concept is that you will first get a list of Most-Recent values
(Max (YourDate)).
Then you will find all dates not in your list of most recent (the query
wizard can help you build an "unmatched" query).
Then you will find the maximum value of THOSE.
Regards
Jeff Boyce
Microsoft Office/Access MVP
> Don't need to sort by last name--these are animals, with only a first
> name...
[quoted text clipped - 61 lines]
>> > right before the Max Date?
>> > Thanks for any help you can give!
Clddleopard - 30 Jan 2007 21:18 GMT
Thanks for your help! With your tips and a little bit of fiddling, it now
does what I want it to do.