C
caro79
I am trying to write an Iif statement where if the difference between the
regeneration data date and 1/1/2009 is less than two years, a 1 appears. If
the difference is less than 3 years a 2 is populated, if the difference is
less than 5 years a 3 is populated, if the difference is less than 10 years a
4 populates, and if the difference is greater than 10 years a 5 appears. My
formula is:
Regeneration Data Date Score: Iif("d",DateDiff([Regeneration Data Date],
[1/1/2009])< 2,"1", Iif("d", DateDiff([Regeneration Data Date] ,[/1/2009] <
3, "2", Iif("d", DateDiff([Regeneration Data Date] , [1/1/2009] < 5, "3",
Iif("d", DateDiff([Regeneration Data Date] , [1/1/2009] < 10, "4", Iif("d",
DateDiff([Regeneration Data Date] , [1/1/2009] > 10, "5")))))
Please help!
regeneration data date and 1/1/2009 is less than two years, a 1 appears. If
the difference is less than 3 years a 2 is populated, if the difference is
less than 5 years a 3 is populated, if the difference is less than 10 years a
4 populates, and if the difference is greater than 10 years a 5 appears. My
formula is:
Regeneration Data Date Score: Iif("d",DateDiff([Regeneration Data Date],
[1/1/2009])< 2,"1", Iif("d", DateDiff([Regeneration Data Date] ,[/1/2009] <
3, "2", Iif("d", DateDiff([Regeneration Data Date] , [1/1/2009] < 5, "3",
Iif("d", DateDiff([Regeneration Data Date] , [1/1/2009] < 10, "4", Iif("d",
DateDiff([Regeneration Data Date] , [1/1/2009] > 10, "5")))))
Please help!