J
Jeff Kaufman
I am currently usins Microsoft Access 2003 and am having a little trouble
writing a query to show the years of service a employee has with the company.
Below is an example of my current query that I would like to just add
another field too for "Years of Service" where it take todays date and the
hire date and calculate the difference between the two and simply return the
number of years of service. I would like for the query to continue to have
the function that allows me to sort only by those agents that have
anniversary dates in certain months as the current query does.
SELECT Employee_HireDate_Qry.Manager, Employee_HireDate_Qry.TeamName,
Employee_HireDate_Qry.[Employee Name], Employee_HireDate_Qry.HireDate,
Employee_HireDate_Qry.[E-Mail]
FROM Employee_HireDate_Qry
WHERE (((Employee_HireDate_Qry.HireMonth)=[Enter digit of month you want to
see]))
ORDER BY Employee_HireDate_Qry.HireMonth, Employee_HireDate_Qry.HireDay,
Employee_HireDate_Qry.HireYear;
writing a query to show the years of service a employee has with the company.
Below is an example of my current query that I would like to just add
another field too for "Years of Service" where it take todays date and the
hire date and calculate the difference between the two and simply return the
number of years of service. I would like for the query to continue to have
the function that allows me to sort only by those agents that have
anniversary dates in certain months as the current query does.
SELECT Employee_HireDate_Qry.Manager, Employee_HireDate_Qry.TeamName,
Employee_HireDate_Qry.[Employee Name], Employee_HireDate_Qry.HireDate,
Employee_HireDate_Qry.[E-Mail]
FROM Employee_HireDate_Qry
WHERE (((Employee_HireDate_Qry.HireMonth)=[Enter digit of month you want to
see]))
ORDER BY Employee_HireDate_Qry.HireMonth, Employee_HireDate_Qry.HireDay,
Employee_HireDate_Qry.HireYear;