Jump to content

This topic is 7907 days old. Please don't post here. Open a new topic instead.

Recommended Posts

  • Newbies
Posted

I have a database that calculates team scores in a cross country running event.

Main fields: Name, Team Name, Place, Points (calc), Points Total (summary).

I can get a report that lists the team names and their Points Totals in order from highest to lowest (sorting by Team Name and Points Total).

My problem... simple as it sounds.. how do I show the finishing position for each Team in the summary?

eg

1 Team C 1234

2 Team A 1123

3 Team C 1012

ie how do I get the 1, 2, 3 etc to list?

Posted

Create a number field called "Place"

Sort the records by points as you already have worked out.

Run this script:

Go To Record/Request/Page [First]

Loop

. Set Field [Place, Status(CurrentRecordNumber)]

. Go To Record/Request/Page [Next][Exit After Last]

End Loop

If you want to be able to deal with tied placings, then its a bit more complicated. You will need to create some extra global fields where you store the points from the previous record and compare them to the current record. If they are the same - set the place as the same place as the previous record.

This topic is 7907 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.