Hi, I have an employe database with details on everyday of those employes. There is an a particular event that I want to track by date. If the employe has been late 4 times during a period of 28 days I want the report or the query to show it to me.
I was thinking of something like that in a query:
IdEmploye Decription Date NumberIn28Days
1234 Late 01/01/2004 4
1234 Late 05/01/2004 3
1234 Late 18/01/2004 2
1234 Late 24/01/2004 2
1234 Late 20/02/2004 1
For the period starting 01/01/2004 there is 4 records that are in a 28 days time frame but for the period starting 24/01/2004 there is only 2. Basically I want the query to calculate for every record, how many other records there is in the 28 next days.
How can I do that if it is possible.
Frank
I was thinking of something like that in a query:
IdEmploye Decription Date NumberIn28Days
1234 Late 01/01/2004 4
1234 Late 05/01/2004 3
1234 Late 18/01/2004 2
1234 Late 24/01/2004 2
1234 Late 20/02/2004 1
For the period starting 01/01/2004 there is 4 records that are in a 28 days time frame but for the period starting 24/01/2004 there is only 2. Basically I want the query to calculate for every record, how many other records there is in the 28 next days.
How can I do that if it is possible.
Frank