These are my Data:
ID Name Enroll Stats Stat Date
00001 Babe Ruth 1- Enrolled 10/13/07
00001 Babe Ruth 7 - Disenrolled 02/20/07
00001 Babe Ruth 0 - Referred 06/01/06
I want to show the the data that correspont to the last date in the list ie. 00001 Babe Ruth 1- Enrolled 10/13/07. Using query and total I group ID, Name, Enroll Stats and Last for stat date. The query result still shows 3 entries and here's the sql query:
SELECT [tbl Enrollment History].[PC ID], [tbl Enrollment History].Name, [tbl Enrollment History].[Enroll Stats], Last([tbl Enrollment History].[Stat Date]) AS [LastOfStat Date]
FROM [tbl Enrollment History]
GROUP BY [tbl Enrollment History].[PC ID], [tbl Enrollment History].Name, [tbl Enrollment History].[Enroll Stats];
Thanks for your expertise.
ID Name Enroll Stats Stat Date
00001 Babe Ruth 1- Enrolled 10/13/07
00001 Babe Ruth 7 - Disenrolled 02/20/07
00001 Babe Ruth 0 - Referred 06/01/06
I want to show the the data that correspont to the last date in the list ie. 00001 Babe Ruth 1- Enrolled 10/13/07. Using query and total I group ID, Name, Enroll Stats and Last for stat date. The query result still shows 3 entries and here's the sql query:
SELECT [tbl Enrollment History].[PC ID], [tbl Enrollment History].Name, [tbl Enrollment History].[Enroll Stats], Last([tbl Enrollment History].[Stat Date]) AS [LastOfStat Date]
FROM [tbl Enrollment History]
GROUP BY [tbl Enrollment History].[PC ID], [tbl Enrollment History].Name, [tbl Enrollment History].[Enroll Stats];
Thanks for your expertise.