|
I am calculating the age of a file. I have two fields I want to calculate the difference in age or years (one is in a form and the other in a subform). The field names are: DOB and CaseDate. I used the following to calculate:
DateDiff("yyyy", Forms!EnterPatient!DOB, Forms!EnterPatient!Case.Form!CaseDate) + (Forms!EnterPatient!Case.Form!CaseDate < DateSerial(Year(Forms!EnterPatient!Case.Form!CaseD ate), Month(Forms!EnterPatient!DOB), Day(Forms!EnterPatient!DOB)))
However, for a file that is not yet a year, it only returns 0. Does anyone know of a way to have it return a decimal for less than a year?
Thanks. |