Hi
I'm having trouble with something that I though would be simple (and it probably is).
I have a query that displays a persons years service
I then want to look up their entitlemet based on the years service.
The entitlement table is...
0 yrs - 30 days
3 yrs - 31 days
5 yrs - 32 days
10 yrs - 33 days
The problem is it is not finding anything for the any of the inbetween years.
I've tried dlookup and SQL.
the SQL is
All this returns is anything that is an exact match.
Thanks
I'm having trouble with something that I though would be simple (and it probably is).
I have a query that displays a persons years service
I then want to look up their entitlemet based on the years service.
The entitlement table is...
0 yrs - 30 days
3 yrs - 31 days
5 yrs - 32 days
10 yrs - 33 days
The problem is it is not finding anything for the any of the inbetween years.
I've tried dlookup and SQL.
the SQL is
Code:
SELECT qryEmployees.EIN, qryEmployees.Fullname, qryEmployees.YrsService, qryEnt.Days
FROM qryEmployees LEFT JOIN qryEnt ON qryEmployees.YrsService = qryEnt.Service
WHERE (((qryEnt.Service)>=[YrsService]))
GROUP BY qryEmployees.EIN, qryEmployees.Fullname, qryEmployees.YrsService, qryEnt.Days
ORDER BY qryEmployees.YrsService;
All this returns is anything that is an exact match.
Thanks