Hello everyone
This website has been a very valuable resource for me over the years, helping me learn a great deal about access.
Now I have come across something that has me totally stuck....:banghead:
I need to subtotal days of absence, by absence Type with start dates and end dates..for example, the raw data looks like this:
Name Date AbsenceType
Smith 01 Jan 2016 Holiday
Smith 02 Jan 2016 Holiday
Smith 03 Jan 2016 PublicHoliday
Smith 04 Jan 2016 Holiday
Smith 05 Jan 2016 Sick
......Weekend, therefore no data entry............
......Weekend, therefore no data entry............
Smith 08 Jan 2016 Sick
Smith 09 Jan 2016 Sick
Smith 10 Jan 2016 Sick
......Was at work, therefore no data entry.......
Smith 12 Jan 2016 Sick
and what I need as a result is:
Name StartDate EndDate AbsenceType DaysHoliday DaysPublicHoliday DaysSick
Smith 01 Jan 2016 02 Jan 2016 Holiday 2
Smith 03 Jan 2016 03 Jan 2016 PublicHoliday 1
Smith 04 Jan 2016 04 Jan 2016 Holiday 1
Smith 05 Jan 2016 05 Jan 2016 Sick 1
Smith 08 Jan 2016 10 Jan 2016 Sick 3
Smith 12 Jan 2016 12 Jan 2016 Sick 1
I've got First and Last and IIf's running around my head
Any help with this is appreciated
This website has been a very valuable resource for me over the years, helping me learn a great deal about access.
Now I have come across something that has me totally stuck....:banghead:
I need to subtotal days of absence, by absence Type with start dates and end dates..for example, the raw data looks like this:
Name Date AbsenceType
Smith 01 Jan 2016 Holiday
Smith 02 Jan 2016 Holiday
Smith 03 Jan 2016 PublicHoliday
Smith 04 Jan 2016 Holiday
Smith 05 Jan 2016 Sick
......Weekend, therefore no data entry............
......Weekend, therefore no data entry............
Smith 08 Jan 2016 Sick
Smith 09 Jan 2016 Sick
Smith 10 Jan 2016 Sick
......Was at work, therefore no data entry.......
Smith 12 Jan 2016 Sick
and what I need as a result is:
Name StartDate EndDate AbsenceType DaysHoliday DaysPublicHoliday DaysSick
Smith 01 Jan 2016 02 Jan 2016 Holiday 2
Smith 03 Jan 2016 03 Jan 2016 PublicHoliday 1
Smith 04 Jan 2016 04 Jan 2016 Holiday 1
Smith 05 Jan 2016 05 Jan 2016 Sick 1
Smith 08 Jan 2016 10 Jan 2016 Sick 3
Smith 12 Jan 2016 12 Jan 2016 Sick 1
I've got First and Last and IIf's running around my head
Any help with this is appreciated