Peter
So, you're saying you want to know if the difference between their start
date and December 31st of the current year is greater than or equal to 25
years. And again, >=35 years...
Take a look at the DateSerial() function (you'll use something like):
DateSerial(Year(Date()), 12, 31)
to get December 31st of the current year.
Take a look at the DateDiff() function (you'll use something like):
DateDiff("y",[StartDate],DateSerial(.... see above...))
You might need to mess with the syntax and order (which date first) - see
Access HELP.
--
Regards
Jeff Boyce
Microsoft Office/Access MVPhttp://mvp.support.microsoft.com/
Microsoft IT Academy Program Mentorhttp://microsoftitacademy.com/
Microsoft Registered Partnerhttps://partner.microsoft.com/
I would like to pick out the Employees that have 25 or 35 years
service on or before the 31st Dec each year. I have their startdate in
my query
Peter- Hide quoted text -
- Show quoted text -