In the last query you posted, I would want to code it so it refers to the 3 letter unique ID of each subject. For example, I could do this:
Where art is that 3 letter that uniquely identifies art. You can't use Left("Subject_Name", 3) because you have subjects like English Language and English Literature, hence, trying to use the first 3 letters would mean those two subjects would end up being "eng" which will cause an error.Code:"Avg(Query_Residuals_ALL.[" & "[COLOR=Red][B]art[/B][/COLOR]" & "-res]"
You can do this way, cause it will always be 3 letters, art-res, bio-res, che-res, med-res ...etc