S
Simon Hart
Hi folks.
Tearing my hair out here.
Noddy example as follows
I have two tables, Clients and Events. Both have ClientID in them and they
have a one-to-many join, as in one client/many events. The primary key of
the Events table is ClientID+Date+Type, primary of Clients is ClientID.
Anyway, what I need is a "make-table" query that will give me one record for
each clientID, where the Events data is from the Events record where the
date is the most recent. Sort of if you were looking at the query in design
mode, what you would put in the criteria for Date that amounts to
"=MostRecent(Client.Date)".
I think that sort of explains it. I've got an example .mdb(208Kb) that might
make it more clear if anyone wants it.
Thanks for your help all.
Tearing my hair out here.

Noddy example as follows
I have two tables, Clients and Events. Both have ClientID in them and they
have a one-to-many join, as in one client/many events. The primary key of
the Events table is ClientID+Date+Type, primary of Clients is ClientID.
Anyway, what I need is a "make-table" query that will give me one record for
each clientID, where the Events data is from the Events record where the
date is the most recent. Sort of if you were looking at the query in design
mode, what you would put in the criteria for Date that amounts to
"=MostRecent(Client.Date)".
I think that sort of explains it. I've got an example .mdb(208Kb) that might
make it more clear if anyone wants it.
Thanks for your help all.