I have a query where I have a field NormalDays and SickDays. I want to calculate if someone has Less than 26 days than it will take rest days from SickDays like below
NormalDays = 24
SickDays = 4
I put function like IIF([NormalDays]<26,[NormalDays]+[SickDays],[NormalDays])
But in this case I want query to calculate only 26 days if someone works for 24 days + 3 SickDays my function will say 27 days but I want to give him only 26 days not more than that.
Is there any way out to fix this problem? Please advice.
NormalDays = 24
SickDays = 4
I put function like IIF([NormalDays]<26,[NormalDays]+[SickDays],[NormalDays])
But in this case I want query to calculate only 26 days if someone works for 24 days + 3 SickDays my function will say 27 days but I want to give him only 26 days not more than that.
Is there any way out to fix this problem? Please advice.