G
Guest
Assume that the table has the following 5 rows: (Grantee ID, Program, Amount, Date)
Row 1: 1, Program Support, $2500, 11/1/1997
Row 2: 1, Program Support, $2500, 11/1/1998
Row 3: 1, Program Support, $2500, 11/1/1999
Row 4: 1, Program Support, $2500, 11/1/2001
Row 5: 1, Program Support, $2500, 11/1/2002
The report needs to show the following info:
$2500 2001 - 2002 Program Support
$2500 1997 - 1999 Program support
I currently look for the MAX and MIN dates for the matching combination of program and amount. This will not reflect the missing year, in the example. I could also have another amount or program in that missing year. The combination of queries currently looks for the MAX, MIN, and unique Program/Amount combinations. I have a feeling I may have to do this programatically, but if there is any way to get this done via queries, it would be easier.
Row 1: 1, Program Support, $2500, 11/1/1997
Row 2: 1, Program Support, $2500, 11/1/1998
Row 3: 1, Program Support, $2500, 11/1/1999
Row 4: 1, Program Support, $2500, 11/1/2001
Row 5: 1, Program Support, $2500, 11/1/2002
The report needs to show the following info:
$2500 2001 - 2002 Program Support
$2500 1997 - 1999 Program support
I currently look for the MAX and MIN dates for the matching combination of program and amount. This will not reflect the missing year, in the example. I could also have another amount or program in that missing year. The combination of queries currently looks for the MAX, MIN, and unique Program/Amount combinations. I have a feeling I may have to do this programatically, but if there is any way to get this done via queries, it would be easier.