I have a column of data, which shows dates, and where there were no dates, I asked to return a null value . I used the following expression.
LeaseNotice: IIf(IsNull([OptionNotice]),Null,IIf([OptionNotice]=0,DateAdd("m",-8,[LeaseExpiry]),DateAdd("m",-[OptionNotice]-2,[LeaseExpiry])))
However, I noticed that the returned vales though looked like dates, these were not quite dates, as I was unable to format the values in medium date in my report. The question is when evaluating a column and returning the result in a column which is meant to hold dates, what should be returned in cases where there was a null value in the original column? I tried using zero but this returned 0:00:00 which is interpreted and read as 30 Dec 99.
Any insights please?
LeaseNotice: IIf(IsNull([OptionNotice]),Null,IIf([OptionNotice]=0,DateAdd("m",-8,[LeaseExpiry]),DateAdd("m",-[OptionNotice]-2,[LeaseExpiry])))
However, I noticed that the returned vales though looked like dates, these were not quite dates, as I was unable to format the values in medium date in my report. The question is when evaluating a column and returning the result in a column which is meant to hold dates, what should be returned in cases where there was a null value in the original column? I tried using zero but this returned 0:00:00 which is interpreted and read as 30 Dec 99.
Any insights please?