Here is my if then statement -
=IIf([SickBalance]>=240,240,[SickBalance])
What it currently does is determine how many sick hours a person has accrued. If it is greater than or equal to 240 hours it display the number 240 (this is the max amount you can accrue), if it is less than 240 hours then is show the amount you have accrued.
What I am really trying to do is set the max at 240, but my problem is each month you continue to accrue 4 hours of sick time, which in example if you had 240 hours two months ago you would have accrued 8 hours of sick giving you a total of 248.
Here is my problem- How do I set 240 as my max value and then subtract any sick time taken form that 240?
Would it work better to come up with a better if statement? Or is there a better way to set it up.
I know I'm not providing all of the information you may need, but this is the only way I can keep it short and sweet.
Thank you in advance
=IIf([SickBalance]>=240,240,[SickBalance])
What it currently does is determine how many sick hours a person has accrued. If it is greater than or equal to 240 hours it display the number 240 (this is the max amount you can accrue), if it is less than 240 hours then is show the amount you have accrued.
What I am really trying to do is set the max at 240, but my problem is each month you continue to accrue 4 hours of sick time, which in example if you had 240 hours two months ago you would have accrued 8 hours of sick giving you a total of 248.
Here is my problem- How do I set 240 as my max value and then subtract any sick time taken form that 240?
Would it work better to come up with a better if statement? Or is there a better way to set it up.
I know I'm not providing all of the information you may need, but this is the only way I can keep it short and sweet.
Thank you in advance