Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sum of top 3

Status
Not open for further replies.

phabio

Technical User
Sep 16, 2002
6
0
0
IT
I have a Table with the Fields
NAME RACE SCORE

I need to generate a Report like That
______________________________________________________
NAME John POINT 101 (SUM of best 3 SCORE !!!!!)
------------------------------------------------------
RACE SCORE
- - - - - - - - - - -- - - - - - - - - - - - - - - - -
aaaa 51
bbbb 26
cccc 24
dddd 18
eeee 11



NAME Bob POINT 50 (SUM of best 3 SCORE !!!!!)
------------------------------------------------------
RACE SCORE
- - - - - - - - - - -- - - - - - - - - - - - - - - - -
aaaa 21
bbbb 19
cccc 10
dddd 3
...


My big problem is how can I calculate the sum of the best 3 SCORES for each NAME.

Please Help
Ciao
Fabio
 
Put the Race and Score data in a sub report. Make the recordsource of that subform start SELECT TOP 3. Link the main and sub reports on the PersonID, or whatever is the PK for the person table.

Jeremy =============
Jeremy Wallace
Designing, Developing, and Deploying Access Databases Since 1995

Take a look at the Developer's section of the site for some helpful fundamentals.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top