J
J. Trucking
Hello,
I have a tabel which shows how many days of holidays an employee is
entitled to. It shows the date the amount was established as well as
the value itself. This is to track changes throughout the employement
(ie) an increase in vacation time as the years of service increase.
For example, the table may look something like this for an individual
employee:
01/01/05 14 Days
01/01/07 21 Days
So here's my question: I would like to set up a query which will do
calculations using the vacation value for a given time period. If my
time period is 01/01/08 - 05/01/08, I would like the query to use 21
Days. I think I can accomplish this using Last/Max. What I need help
with is if there are two values within a given time period. For
example, if the user selects 01/01/04 - 01/01/08 as the time period,
it would encompass two different values for holidays. If this
happens, I just want the value to show some sort of sentence that says
"More than one value - Please seperate Time periods). Is this
possible within the query?
Thanks in advance,
John
I have a tabel which shows how many days of holidays an employee is
entitled to. It shows the date the amount was established as well as
the value itself. This is to track changes throughout the employement
(ie) an increase in vacation time as the years of service increase.
For example, the table may look something like this for an individual
employee:
01/01/05 14 Days
01/01/07 21 Days
So here's my question: I would like to set up a query which will do
calculations using the vacation value for a given time period. If my
time period is 01/01/08 - 05/01/08, I would like the query to use 21
Days. I think I can accomplish this using Last/Max. What I need help
with is if there are two values within a given time period. For
example, if the user selects 01/01/04 - 01/01/08 as the time period,
it would encompass two different values for holidays. If this
happens, I just want the value to show some sort of sentence that says
"More than one value - Please seperate Time periods). Is this
possible within the query?
Thanks in advance,
John