..5 is not 5 months. .5 means 1/2 (6 months).
The first formula I sent you would have returned...
12 years 5 months.
You are welcome to change it so it prints "12", a period, and then "5".
Simply replace " yrs. " with "."
and leave off the & " mts." part
But again, 12.5 is 12 and a half years which is twenve years and 6 months.
--
Rick B
Analyst 1 said:
The decimal returned was not in complete months. I need a return of 12.5 for
twelve years and five months not twelve and a half, or six months.
Rick B said:
Here is some code I use in a form to show years and months of service. You
can modify it for your needs...
=DateDiff("m",[HireDate],Date())\12 & " yrs. " &
DateDiff("m",[HireDate],Date()) Mod 12 & " mts."
--
Rick B
I am running a query to decern the years and months elapsed from one
service
to the next.
I can run it to display the year but not month. Here is my funciton: YRS:
DateDiff("yyyy",[BIRTH_DATE],[CLOSING_DATE]). How do I incorporate the
month?
Thank you,
Thank you