K
knowshowrosegrows
OK, I have a query (qryRunningCapacity) that produces the following results:
Program_ID, Capacity, CapStartDate, CapEndDate.
Over time, a Program_ID may have the Capacity change numerous times, e,g.,
Program_ID Capacity CapStartDate CapEndDate
22 100 3/1/2004 6/30/2006
22 200 7/1/2006 8/31/2008
22 250 9/1/2008
So the current capacity is 250 but it was not always so.
I also have a table (tblCensusEvent) that collects a daily census amount.
Program_ID, CensusEvent_ID, CensusDate, Census
I want to trend the utilization of my programs, so I will divide the
tlbCensusEvent.Census by the qryRunningCapacity.Capacity that was in effect
DURING THE APPROPRIATE TIME FRAME in the qryRunningCapacity.
Can someone get me started on a formula?
Program_ID, Capacity, CapStartDate, CapEndDate.
Over time, a Program_ID may have the Capacity change numerous times, e,g.,
Program_ID Capacity CapStartDate CapEndDate
22 100 3/1/2004 6/30/2006
22 200 7/1/2006 8/31/2008
22 250 9/1/2008
So the current capacity is 250 but it was not always so.
I also have a table (tblCensusEvent) that collects a daily census amount.
Program_ID, CensusEvent_ID, CensusDate, Census
I want to trend the utilization of my programs, so I will divide the
tlbCensusEvent.Census by the qryRunningCapacity.Capacity that was in effect
DURING THE APPROPRIATE TIME FRAME in the qryRunningCapacity.
Can someone get me started on a formula?