I have no idea how to start with this one.
I have a subform where records could look similar to:
Somehow, I've got to calculate the points the driver has as of the current date. For instance, in the above example:
On 01/01/2000 three points added to the driver's record.
On 01/01/2001 the points were reduced by 1/3 (2).
On 01/01/2002 the remaining points were reduced by 1/2 (1).
On 06/01/2002 one point is added to the remainder (2).
On 06/01/2003 the remaining points were reduced by 1/3 (1.33).
On 06/01/2004 the remaining points were reduced by 1/2 (0.65).
On 06/01/2005 the remaining points will be 0 if no more infractions.
I'm thinking of putting an unbound textbox in the footer of the subform that will show the remaining points but have no idea how to do this calculation.
Can someone point me the right direction.
I'll probably have to create a report with the same calculation.
TIA,
Debbie
I have a subform where records could look similar to:
Code:
Infraction Date Points
01/01/2000 3
06/01/2002 1
On 01/01/2000 three points added to the driver's record.
On 01/01/2001 the points were reduced by 1/3 (2).
On 01/01/2002 the remaining points were reduced by 1/2 (1).
On 06/01/2002 one point is added to the remainder (2).
On 06/01/2003 the remaining points were reduced by 1/3 (1.33).
On 06/01/2004 the remaining points were reduced by 1/2 (0.65).
On 06/01/2005 the remaining points will be 0 if no more infractions.
I'm thinking of putting an unbound textbox in the footer of the subform that will show the remaining points but have no idea how to do this calculation.
Can someone point me the right direction.
I'll probably have to create a report with the same calculation.
TIA,
Debbie