That would be great. The lines that are commented are ones I know are formatted wrong. The rest Iâm hoping is correct but I havenât been able to test it
Thanks,
Michael
I found a problem with my forfeit counter. If they had 0 points for a given year it won't even show up in the database.
What I think can be done is to set a temp var = to the year in the first record for a given member.
Change the for counter to use this temp var instead of the actual year in the record.
as it loops through the records add +1 to the temp var. I can then do an if statement to check that the temp var is = to the year field in the record. if they are not equal than move the record back one and increase the forfeit counter. also would need to check that the member numbers are still the same. if they are not the same than move back one record and bump up the forfeit counter. Since the loop will end once the temp var is > the end date this should work well.
this is an example of the data I am trying to get the correct count on.
Person enters 2008 as ending date
ID year points
13 2001 45
13 2003 42
13 2004 60
13 2005 72
14 2002 50
So for record 13 I want to count that they forfeit years 2002, 2006, 2007 and 2008
That is 4 forfeited years so would need to change the vested field on their record to FF
|