M
MKM
my client runs a halfway house and needs to track information regarding where
the recovering addicts are the three recovery phases. I move them from Phase
1 to Phase 2 and do record the date of the move. At month's end she wants a
report that shows, for each day of that month, that there were X addicts in
PH1, Y addicts in PH2 and Z addicts in PH3. For example, on Monday there are
9, 12 and 4 addicts in each of the three phases. On Tuesday 2 addicts move
up to PH2 and 1 addicts moves to PH3, so I need to show 7, 13 and 5. I can
query at any point to find the current number in each phase, but need the
historical data. The only thing I can think of is to run a query each day
that counts the number in each phase and stores that information to be used
later in a report. Surely, since I know that date an addict was moved , I
can iterate through the days of the month and see if that date is before the
move to PH2 date and then count? --
Monica K. Murphy
the recovering addicts are the three recovery phases. I move them from Phase
1 to Phase 2 and do record the date of the move. At month's end she wants a
report that shows, for each day of that month, that there were X addicts in
PH1, Y addicts in PH2 and Z addicts in PH3. For example, on Monday there are
9, 12 and 4 addicts in each of the three phases. On Tuesday 2 addicts move
up to PH2 and 1 addicts moves to PH3, so I need to show 7, 13 and 5. I can
query at any point to find the current number in each phase, but need the
historical data. The only thing I can think of is to run a query each day
that counts the number in each phase and stores that information to be used
later in a report. Surely, since I know that date an addict was moved , I
can iterate through the days of the month and see if that date is before the
move to PH2 date and then count? --
Monica K. Murphy