Creating a query to show the most recent "many" entry

  • Thread starter PaulRed via AccessMonster.com
  • Start date
P

PaulRed via AccessMonster.com

I have a Notes table linked one-to-many with the Clients table. The Notes
table has a date field to record the date a note was made. I'm trying to
create a report that will show me just: client name & the age of the most
recent note entry. I don't know how to make a query that will select JUST
the most recent note. [This allows us to determine how recently action was
taken on a given client, without having to page through all the clients.]
Thanks for your help.
--Paul
 
J

John W. Vinson

I have a Notes table linked one-to-many with the Clients table. The Notes
table has a date field to record the date a note was made. I'm trying to
create a report that will show me just: client name & the age of the most
recent note entry. I don't know how to make a query that will select JUST
the most recent note. [This allows us to determine how recently action was
taken on a given client, without having to page through all the clients.]
Thanks for your help.
--Paul

Base it on a Query with a criterion like

=(SELECT Max([datefield]) FROM Notes AS X WHERE X.ClientID = Clients.ClientID)

on the date field.
 

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