I'm doing a datediff where I'm using a persons birthday and the day they were closed to our services to determine age. However, if they haven't been closed in 2002 I want to use 12/31/2002 to substitute for CloseDate.
I found this example:
IIf(IsNull([DateOut]) = True, DateDiff("dd", [DateIn], Date()), DateDiff("dd", [DateIn], [DateOut])) As TimeInProgram
In the following thread:
thread181-405046
I get the #error in the field. Here's how I have it. I probably have it set up incorrectly:
IIf(IsNull([CloseDate])=True,DateDiff("d",[DOB],#12/30/2002#,DateDiff("d",[CloseDate],[DOB])))
I found this example:
IIf(IsNull([DateOut]) = True, DateDiff("dd", [DateIn], Date()), DateDiff("dd", [DateIn], [DateOut])) As TimeInProgram
In the following thread:
thread181-405046
I get the #error in the field. Here's how I have it. I probably have it set up incorrectly:
IIf(IsNull([CloseDate])=True,DateDiff("d",[DOB],#12/30/2002#,DateDiff("d",[CloseDate],[DOB])))