I used to do PAL before ObjectPal many many years ago. I still use native Paradox for basic database needs. My wife has given me a project -- to tabulate points accumulated by high school swimmers and get the average for each. Simple task. However, the information is in a spreadsheet where the swimmer's name is in a column/row field with the swim points for each race are in rows underneath without the swimmer's name -- grouping.
Normally, if the list was short, I could just use Ctrl-D to copy the person's name to the rows underneath. But I have over a hundred names and over 3,500 records.
I want to write a script that will check the name field, if there is a name there, copy it to a variable, go to the next record and paste it into the field that has either a Y or is blank. Then go down to the next record, do an if/then check and keep looping until the end of the file when each time it encounters a name, the variable changes for the next paste.
The db file name is swim. The three fields in it are points, name and race.
Could someone help me? It has been so long and I've drawn a blank on doing it.
Once I get all the names on the same row with the points/races, I can then do a query and report to produce what my wife needs. It is getting the names on each line that I need assistance with.
Normally, if the list was short, I could just use Ctrl-D to copy the person's name to the rows underneath. But I have over a hundred names and over 3,500 records.
I want to write a script that will check the name field, if there is a name there, copy it to a variable, go to the next record and paste it into the field that has either a Y or is blank. Then go down to the next record, do an if/then check and keep looping until the end of the file when each time it encounters a name, the variable changes for the next paste.
The db file name is swim. The three fields in it are points, name and race.
Could someone help me? It has been so long and I've drawn a blank on doing it.
Once I get all the names on the same row with the points/races, I can then do a query and report to produce what my wife needs. It is getting the names on each line that I need assistance with.