I am having some difficulty with a date calculation that i built in a query. The cell is supposed to calculate the difference between two dates and tell me how long an employee has worked for the company in years. The formula I am currently using is
Years in Service: DateDiff("yyyy",[Hire_Date],Date())
The problem I am having is it appears as though when an employee works in multiple years but has yet to reach the anniversary date, the number is counting up.
Example. I have an employee in the DB who was hired on 11/4/2011, the result is currently 1; however it should not be 1 until the anniversary date of 11/4/2012.
What am I doing wrong???? Someone, anyone please help.
Can anyone help.
Years in Service: DateDiff("yyyy",[Hire_Date],Date())
The problem I am having is it appears as though when an employee works in multiple years but has yet to reach the anniversary date, the number is counting up.
Example. I have an employee in the DB who was hired on 11/4/2011, the result is currently 1; however it should not be 1 until the anniversary date of 11/4/2012.
What am I doing wrong???? Someone, anyone please help.
Can anyone help.