Hello,
I have a record set that will return anywhere from 1 to 3 records. Of those records, I have 2 fields that I am concerned with "Points" and "EarnBackPoints". The Points field can have a value of .33,.66 or 1. What I need to do is apply a value in EarnBackPoints so that the sum of EarnBackPoints will be no greater than 1.
Here are some scenarios of what the recordset would need to look like after the EarnBackPoints are applied...
Example1:
Rec Points EarnBackPoints
A-------1------------1
Example2:
Rec Points EarnBackPoints
A-------.33----------.33
B-------.33----------.33
C-------.33----------.33
Example3:
Rec Points EarnBackPoints
A-------.66----------.66
B-------.33----------.33
C-------.33----------.00
Example4:
Rec Points EarnBackPoints
A--------1------------1
B-------.33----------.00
I'm at a loss on how to proceed with this. Any help you can offer would be extremely appreciated.
Thanks!
Elysynn
I have a record set that will return anywhere from 1 to 3 records. Of those records, I have 2 fields that I am concerned with "Points" and "EarnBackPoints". The Points field can have a value of .33,.66 or 1. What I need to do is apply a value in EarnBackPoints so that the sum of EarnBackPoints will be no greater than 1.
Here are some scenarios of what the recordset would need to look like after the EarnBackPoints are applied...
Example1:
Rec Points EarnBackPoints
A-------1------------1
Example2:
Rec Points EarnBackPoints
A-------.33----------.33
B-------.33----------.33
C-------.33----------.33
Example3:
Rec Points EarnBackPoints
A-------.66----------.66
B-------.33----------.33
C-------.33----------.00
Example4:
Rec Points EarnBackPoints
A--------1------------1
B-------.33----------.00
I'm at a loss on how to proceed with this. Any help you can offer would be extremely appreciated.
Thanks!
Elysynn