R
Robbin
I have an expression that seems to work fine, unless the [EndDateofRank] is
populated. Iif the [EndDateofRank] is populated, it subtracts it from the
[AcademicYearEnding]. I can see that this is exactly what the expression
says, but not what I need. I need the difference between the BegDateofRank
and the [EndDateofRank] if the [EndDateofRank] is populated.
YearsInRank:
IIf(Month(Date())<7,TYears.AcademicYearEnding-DatePart("yyyy",nz([EndDateofRank],[BegDateofRank]))-1,TYears.AcademicYearEnding-DatePart("yyyy",nz([EndDateofRank],[BegDateofRank])))
Seems like the [AcademicYearEnding] and the [EndDateofRank] should be
switched, but I can't make it work.
Can anyone help?
Thank you!
populated. Iif the [EndDateofRank] is populated, it subtracts it from the
[AcademicYearEnding]. I can see that this is exactly what the expression
says, but not what I need. I need the difference between the BegDateofRank
and the [EndDateofRank] if the [EndDateofRank] is populated.
YearsInRank:
IIf(Month(Date())<7,TYears.AcademicYearEnding-DatePart("yyyy",nz([EndDateofRank],[BegDateofRank]))-1,TYears.AcademicYearEnding-DatePart("yyyy",nz([EndDateofRank],[BegDateofRank])))
Seems like the [AcademicYearEnding] and the [EndDateofRank] should be
switched, but I can't make it work.
Can anyone help?
Thank you!