striker83716
Technical User
Hi All. I have a database that I need help with and am not sure how to get the answer I need. 2 tables with a 1 to many relationship
TblEmployees
pk IDEmployee
BadgeNumber
LName
FName
TBLEmployment (Qry based on this table shows duration)
pk IDEmployment
fk idEmployee
StartDate
EndDate
An employee may have been hired/layed off several times. What I would like to determine is the date a employee reaches his 5 year Anniversary based upon the date ranges he was employed. A example (not going to mess with Leap year)
start date end date duration
01/01/1990 06/25/1992 906
09/27/1995 10/29/2004 3320
What would be the 5 year Anniversary date or in other words the 1825th day worked? which should be 04/03/1998
TblEmployees
pk IDEmployee
BadgeNumber
LName
FName
TBLEmployment (Qry based on this table shows duration)
pk IDEmployment
fk idEmployee
StartDate
EndDate
An employee may have been hired/layed off several times. What I would like to determine is the date a employee reaches his 5 year Anniversary based upon the date ranges he was employed. A example (not going to mess with Leap year)
start date end date duration
01/01/1990 06/25/1992 906
09/27/1995 10/29/2004 3320
What would be the 5 year Anniversary date or in other words the 1825th day worked? which should be 04/03/1998