Newbies CharlieC Posted June 11, 2003 Newbies Posted June 11, 2003 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?
RussBaker Posted June 11, 2003 Posted June 11, 2003 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.
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now