BBAirborne
New member
- Local time
- Today, 11:39
- Joined
- Dec 9, 2008
- Messages
- 3
Have about 15000 records in a table [activity] and in the table a person can have many instances of one activity; for example, Routine Fitness, Dental Exam, etc.. It is a one-to-many where the user can have many activities; however, the activities have a value, and that activity is capped at a certain value. For Example, Walking activitity earns you 3 points and you can end up with 300 but the cap is 100.
My problem is not reporting ALL the values or Sum. I have that in a report. My problem is staying within the cap value. For example, If activity= walking is greater than 100 then value is 100. I need to count/sum the activity and then trim in back to the cap value if it exceeds it.
Hope this makes sense. it is kicking my tail. Thanks in advance.
My problem is not reporting ALL the values or Sum. I have that in a report. My problem is staying within the cap value. For example, If activity= walking is greater than 100 then value is 100. I need to count/sum the activity and then trim in back to the cap value if it exceeds it.
Hope this makes sense. it is kicking my tail. Thanks in advance.