Hi...
I have data in a log table that resembles the following list. I am working on a query that I need to pull out all records that were restored during the year. If a record was closed it would have a close date and a "Y" in the indicator field, and if it was restored, it would be followed with a record containing a date (restored date value) in the closed date and a blank in the indicator field.
In summary, I only want the record that closed, and the following record that shows it was restored.
ACCT ACCTNAME CLOSE DATE CLOSE INDICATOR
F65 GRAHAM WILLIAM W 9/6/2005 Y
F65 GRAHAM WILLIAM W 12/8/2005
F7E JAMES B
F7J MITCHELL 1/31/2005 Y
F7J MITCHELL 5/18/2005
I have data in a log table that resembles the following list. I am working on a query that I need to pull out all records that were restored during the year. If a record was closed it would have a close date and a "Y" in the indicator field, and if it was restored, it would be followed with a record containing a date (restored date value) in the closed date and a blank in the indicator field.
In summary, I only want the record that closed, and the following record that shows it was restored.
ACCT ACCTNAME CLOSE DATE CLOSE INDICATOR
F65 GRAHAM WILLIAM W 9/6/2005 Y
F65 GRAHAM WILLIAM W 12/8/2005
F7E JAMES B
F7J MITCHELL 1/31/2005 Y
F7J MITCHELL 5/18/2005