well, i'm not sure where your setup needs to be tweaked; in a simple test i
just wrote, i had no trouble sorting the team "groups" in the report by the
TeamScore field from the query. here's what i did; suggest you check the
following against your setup and see if you can spot the problem:
i started with a simple table, as
tblPlayerScores
playerID (primary key)
teamID (foreign key from a table listing all teams)
playerName
playerScore
i wrote the following Totals query, named qryTeamScores, as
SELECT teamID, Sum(playerScore) AS TeamScore
FROM tblPlayerScores
GROUP BY teamID;
i then wrote a SELECT query based on tblPlayerScores and the above Totals
query, and named it qryPlayerScores, as
SELECT tblPlayerScores.playerID, tblPlayerScores.teamID,
tblPlayerScores.playerName, tblPlayerScores.playerScore,
qryTeamScores.TeamScore
FROM tblPlayerScores LEFT JOIN qryTeamScores ON tblPlayerScores.teamID =
qryTeamScores.teamID;
i based the report on qryPlayerScores. in the report, controls bound to the
playerName and playerScore went into the Detail section. in the Sorting and
Grouping box, i sorted the TeamScore field Ascending, *without* making any
changes to the default settings in the GroupProperties. next, i sorted the
teamID field Ascending, AND set the GroupHeader and GroupFooter properties
to Yes. next, i sorted the playerScore field Descending, again *without*
making any changes to the default Group Properties settings. after closing
the Sorting and Grouping box, i added controls bound to the teamID and
TeamScore fields, to the teamID Header section.
in my test data, the team scores are 12, 11, and 25 for teams 1, 2, and 3
respectively. in my report, the team groups were properly sorted as team 2,
1, and then 3, per the settings in the Sorting and Grouping box.
hth