K
knowshowrosegrows
Have a table
tblCapacity
fldID
fldEffDate
fldCap
When an ID has it's capacity changed, another record is added with the new
capacity and new effective date. So, ID 555 may have 3 records.
ID EffDate Cap
555 1/1/1995 9
555 4/1/2004 15
555 11/1/2008 11
I need a query that gives me a start date and end date field for each ID
"StartDate" = EffDate
If EffDate = MaxOfEffDate
Then "EndDate" = [EffDate] - 1
Else "EndDate" is Null
Does this make sense? Can someone explain to me how to make this query as
if I were a 9 year old?
tblCapacity
fldID
fldEffDate
fldCap
When an ID has it's capacity changed, another record is added with the new
capacity and new effective date. So, ID 555 may have 3 records.
ID EffDate Cap
555 1/1/1995 9
555 4/1/2004 15
555 11/1/2008 11
I need a query that gives me a start date and end date field for each ID
"StartDate" = EffDate
If EffDate = MaxOfEffDate
Then "EndDate" = [EffDate] - 1
Else "EndDate" is Null
Does this make sense? Can someone explain to me how to make this query as
if I were a 9 year old?