S
Sue Compelling
Hi
I have the following query
SELECT [FirstName] & (" ("+[PreferredName]+")") & (" "+[SecondName]) & " " &
UCase([LastName]) AS StName, TblSchools.SchoolMth, TblSchools.SchoolYr,
TblSchools.FormYr, TblSchools.School, TblSchools.Teacher
FROM TblStudents INNER JOIN TblSchools ON TblStudents.StudentID =
TblSchools.StudentIDFK
GROUP BY [FirstName] & (" ("+[PreferredName]+")") & (" "+[SecondName]) & " "
& UCase([LastName]), TblSchools.SchoolMth, TblSchools.SchoolYr,
TblSchools.FormYr, TblSchools.School, TblSchools.Teacher;
Which at times will result in more that one school record being displayed
for a student .. eg
StName SchoolMth SchoolYr FormYr School
Tony TUMUSA 8 Glenavon School
Tony TUMUSA Feb 2009 9 Kelston Boys High
Trey FIAOLA 8 Mt Roskill Intermediate
Trey FIAOLA Feb 2009 9 Lynfield College
I want my query to be able to pick up ONLY the last school entires - eg
StName SchoolMth SchoolYr FormYr School
Tony TUMUSA Feb 2009 9 Kelston Boys High
Trey FIAOLA Feb 2009 9 Lynfield College
Is there a way I can do this easily without the user having to notate the
last record as "current"?
TIA
Sue
I have the following query
SELECT [FirstName] & (" ("+[PreferredName]+")") & (" "+[SecondName]) & " " &
UCase([LastName]) AS StName, TblSchools.SchoolMth, TblSchools.SchoolYr,
TblSchools.FormYr, TblSchools.School, TblSchools.Teacher
FROM TblStudents INNER JOIN TblSchools ON TblStudents.StudentID =
TblSchools.StudentIDFK
GROUP BY [FirstName] & (" ("+[PreferredName]+")") & (" "+[SecondName]) & " "
& UCase([LastName]), TblSchools.SchoolMth, TblSchools.SchoolYr,
TblSchools.FormYr, TblSchools.School, TblSchools.Teacher;
Which at times will result in more that one school record being displayed
for a student .. eg
StName SchoolMth SchoolYr FormYr School
Tony TUMUSA 8 Glenavon School
Tony TUMUSA Feb 2009 9 Kelston Boys High
Trey FIAOLA 8 Mt Roskill Intermediate
Trey FIAOLA Feb 2009 9 Lynfield College
I want my query to be able to pick up ONLY the last school entires - eg
StName SchoolMth SchoolYr FormYr School
Tony TUMUSA Feb 2009 9 Kelston Boys High
Trey FIAOLA Feb 2009 9 Lynfield College
Is there a way I can do this easily without the user having to notate the
last record as "current"?
TIA
Sue