F
fwhilton
I searched hard for this and can not seem to find anything.
This is a hard request.. so could an advanced Access guru help?
I need to return only the records that have 3 days (or more) with the same
(or more) code(s).
EXAMPLE DATA:
Date CODE
1/1/2007 SICK
1/2/2007 SICK
1/3/2007 SICK
1/4/2007 SICK
1/1/2007 S-DIS
1/2/2007 S-DIS
1/1/2007 VAC
1/2/2007 VAC
From the sample data above, I want to only return the SICK code records IF
the SICK code only occurrs 3 days in a row. So, I have to also evaluate the
next reocord's data and code.
But the twist is... I have to also get all the records if there is more then
three.
AND... I must take into account the weekends!!
I believe I will have to do this with VBA in some loop and then store in an
array avriables, then write records to a new table.
Whew!!
This is a hard one!
Thanks for any help.
Frank @ TD Banknorth
This is a hard request.. so could an advanced Access guru help?
I need to return only the records that have 3 days (or more) with the same
(or more) code(s).
EXAMPLE DATA:
Date CODE
1/1/2007 SICK
1/2/2007 SICK
1/3/2007 SICK
1/4/2007 SICK
1/1/2007 S-DIS
1/2/2007 S-DIS
1/1/2007 VAC
1/2/2007 VAC
From the sample data above, I want to only return the SICK code records IF
the SICK code only occurrs 3 days in a row. So, I have to also evaluate the
next reocord's data and code.
But the twist is... I have to also get all the records if there is more then
three.
AND... I must take into account the weekends!!
I believe I will have to do this with VBA in some loop and then store in an
array avriables, then write records to a new table.
Whew!!
This is a hard one!
Thanks for any help.
Frank @ TD Banknorth