Morning all ,
Bit stumped and not sure if this is actually possible.
I have a table which holds details of reports created by different people.
I want to display the last report created by each person so....
I've "group By" 'd the person_index and used Max to get the last date of their report as so -
SELECT inv_reports.person_index, Max(inv_reports.date_of_report) AS MaxOfdate_of_report
FROM inv_reports
GROUP BY inv_reports.person_index;
the problem is i need to display a third field in the query, "report_number". I'm not sure how to include this field in my query to display the report_number for the matching record of maxofdate_of_report.
Any help much appriciated!
Away to grab some more coffee and scratch head some more!

Bit stumped and not sure if this is actually possible.
I have a table which holds details of reports created by different people.
I want to display the last report created by each person so....
I've "group By" 'd the person_index and used Max to get the last date of their report as so -
SELECT inv_reports.person_index, Max(inv_reports.date_of_report) AS MaxOfdate_of_report
FROM inv_reports
GROUP BY inv_reports.person_index;
the problem is i need to display a third field in the query, "report_number". I'm not sure how to include this field in my query to display the report_number for the matching record of maxofdate_of_report.
Any help much appriciated!
Away to grab some more coffee and scratch head some more!