G
Guest
I am calculating seniority. I start out by using a datedif command as follows.
Seniority: DateDiff("ww",[Hired Date],#3/31/2007#).
This gives me the number of weeks of seniority. I then divide the result
by 52 to get years. So far everything is fine. Then I do a table lookup
based on the 1st number of years to get a multiplier factor. The table has
values from 0 to 4. So if anyone is under 1 year their multiplier is
different from someone who has been employed for more years. The table
values are 20 for 0-1 yrs; 40 for 1-2 yrs etc.
Percnt years: IIf([years] Is Null,'',(DLookUp("percentage","tblprcnt","yrs
=" & Left([Years],1))))
This works great except for 1 rotten person. This person hired in 3/5/07.
Their seniority comes back with 0.05769.... and the table look up does not
equate to 0. What is wrong?
Seniority: DateDiff("ww",[Hired Date],#3/31/2007#).
This gives me the number of weeks of seniority. I then divide the result
by 52 to get years. So far everything is fine. Then I do a table lookup
based on the 1st number of years to get a multiplier factor. The table has
values from 0 to 4. So if anyone is under 1 year their multiplier is
different from someone who has been employed for more years. The table
values are 20 for 0-1 yrs; 40 for 1-2 yrs etc.
Percnt years: IIf([years] Is Null,'',(DLookUp("percentage","tblprcnt","yrs
=" & Left([Years],1))))
This works great except for 1 rotten person. This person hired in 3/5/07.
Their seniority comes back with 0.05769.... and the table look up does not
equate to 0. What is wrong?