list only most recent event in a query

L

lynn atkinson

I am trying to create a record of training courses
employees have been on.
Each course attended is recorded in the coursebookings
table.
I want to display a record of only the most recent courses
attended
ie if they attended a course in 2001, a refresher in 2002
and 2003, I just want the query to list the refresher in
2003. The course names are the same eg first aid, but each
time the course runs it has a unique id (event ID) which
is a course running on a particular date.

I have tried using the Max function on the query on the
date of the course, but it still lists the earlier
courses. Do I combine the max date with something else.
I cant get my head round this!

thanks
 
A

Allen Browne

--
Allen Browne - Microsoft MVP. Perth, Western Australia.

Reply to group, rather than allenbrowne at mvps dot org.
 

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