As I tried to explain, that is not an expression. It is the
report's new RecordSource query. And, no, you do not do it
for each team, you do once for the report.
If you do not know what a query is, click on the database
window's Query tab, then click the New button. When the
query design grid appears, use the View menu to switch to
SQL view and Paste my example SQL statement over whatever is
in the SQL window. Then check each name in my statement and
change them to the names you are actually using. Once you
think you have corrected my guesses at your names, try to
run the query by switching to datasheet view. If it doesn't
work, check the names more carefully until it does run.
Then look at the data in the datasheet to make sure it is
what you want.
When the query is generating the desired dataset, close and
save the query. Then open the report in design view and set
its RecordSource property to the name of the query.
Finally, open the report's Sorting and Grouping window (View
menu) and specify the calculated field, TeamTotal, in the
first Field/Expression row and the Team field in the second
row. Close and save the report. Then preview it to check
that results.
--
Marsh
MVP [MS Access]
Thanks for the response. I'm not sure where or how to set that expression
up. Would I have to do this for each team?