monkeyman77
Registered User.
- Local time
- Today, 09:42
- Joined
- Nov 30, 2016
- Messages
- 47
Is it possible to have an iif statement in a query that will count or sum as it runs, then when the count/sum reaches a value then it will do what you'd like.
Example: If these are the results of my query
Day: Job: Hours: OT:
Mon 1 8 0
Tues 1 4 0
Tues 2 4 1
Tues 3 0 3
Wed 2 4 0
Wed 2 4 0
Basically, I want the iif statement to realize that once the number of hours reaches 8 on a particular day to stop counting. Then in the OT column i will have it start counting once the hours reach 8.
Any help is much appreciated!!
-Steven
Example: If these are the results of my query
Day: Job: Hours: OT:
Mon 1 8 0
Tues 1 4 0
Tues 2 4 1
Tues 3 0 3
Wed 2 4 0
Wed 2 4 0
Basically, I want the iif statement to realize that once the number of hours reaches 8 on a particular day to stop counting. Then in the OT column i will have it start counting once the hours reach 8.
Any help is much appreciated!!
-Steven