G
ghost
Hi,
I have a table for employee’s promotions and there is a form that shows the
next promotions based on position and one field for last promotion date. For
example, if the job title is group leader, then add to the last promotion
date 2 years. I have used the following formula and it works only with 3
conditions only
IIf([Grade]="Manager",DateAdd("yyyy",4,[GradeDate]),IIf([Grade]="Sr.Suprvisor",DateAdd("yyyy",3,[GradeDate]),IIf([Grade]="Supervisor",DateAdd("yyyy",5,[GradeDate]),"12/31/9999")))
I have up to 9 position , is there any way to simplify the conditions
I have a table for employee’s promotions and there is a form that shows the
next promotions based on position and one field for last promotion date. For
example, if the job title is group leader, then add to the last promotion
date 2 years. I have used the following formula and it works only with 3
conditions only
IIf([Grade]="Manager",DateAdd("yyyy",4,[GradeDate]),IIf([Grade]="Sr.Suprvisor",DateAdd("yyyy",3,[GradeDate]),IIf([Grade]="Supervisor",DateAdd("yyyy",5,[GradeDate]),"12/31/9999")))
I have up to 9 position , is there any way to simplify the conditions