Derived Values

Expe

New member
Local time
Today, 12:00
Joined
Jul 1, 2015
Messages
4
I need help using a function or query to calculate length of service based on employee hire date (table column) and current/today's date. I will appreciate your assistance.
Thank you in advance!
Expe
 
in the query,:
dateDiff("d",[HireDate],Date()) as DaysOnJob
 
Thanks, Ranman256 - The function dateDiff("d",[HireDate],Date()) works except that I get an error message when I try to use it in a Calculated Field with the message that it cannot be used in a calculated field. Any advice?
Expe
 
Tell us about your table(s) and the reason for the calculated field.
 
Thanks.
I have an EMPLOYEE table with DateOfHire and LenghofService (LOS) among the fields. The LOS value should be derived based on the hired date and the current/sysdate.
Once again, thanks for your help!
Expe
 
You do not store values that you can calculate. Use a query to get the desire value.

LOS (in days) can always be determined from DateDiff("d", HireDate, Date)
 

Users who are viewing this thread

Back
Top Bottom