Does this give you something closer to what you need:
SELECT name, Levels, Subject
FROM Pupil_Results
WHERE ((Pupil_Results.Subject)="Maths")
GROUP BY Levels,name;If not, why not? In fact, what exactly do you need? Just use the query builder to get what you need...it should all be there if...