tblUnscheduledTimeOff
UnscheduledTimeOffID
EmployeeID_fk
USTOTypeID_fk
USTODate
tblUnscheduledTimeOffTypes
UnscheduledTimeOffID
USTOPoints
I have a base query that calculates the unscheduled time off and this is
where I tried that DateAdd function, then I made a count of points query
based on that base query. I made a report based on the count query and
it shows the employees and the total points they have. I'm getting mixed
up because everyone would have a different start date to count from.
Thanks,
Linda
Ken Snell (MVP) said:
You want to use the first date on which the employee calls in as the
"starting date" for the DateAdd?
Well, how you do that depends on how your data are stored in the table.
Tell us the table's fields and what data each record holds, then we can
suggest how to "find" that first date value for the employee.
--
Ken Snell
<MS ACCESS MVP>
I tried a few tests and figured that out... Rats! If I want the point
totals to drop off 12 weeks ago based on the first date the employee
calls in, how could I do that?
Thanks,
Linda
Try it in Immediate Window and see --- It'll give you the date that is
12 weeks ago today. It will not be dependent upon an employee's "first
date [he calls] in".
--
Ken Snell
<MS ACCESS MVP>
Hi,
Access 2000. I need to keep track of point totals for sick time for
employees for the last 12 weeks. I have my totals query totaling up
correctly. The glitch is, each employees time starts on the first
date they call in. Is this criteria below going to return the last
12 weeks from today or the last 12 weeks for each employee?
=DateAdd("d",-84,Date())
Thanks,
Linda