bamafan2002
Technical User
- Oct 13, 2004
- 9
I have a report that has several sub reports in it and within each subreport there is at least two subreports. I have data for fiscal years 2001 through 2005. There is missing information in some 2001 fields but for the most part many of the fields do contain data for 2001.
Ex.
Total caseload
2001 - 14250
2002 - 18376
2003 - 21967
2004 - 23128
2005 - 25432
The first query list all information for each year. The second query for for the second report has the following 4 fields for the caseload field.
Fcsld: csld ' record
Lcsld: csld ' last record
Ccsld: [Lcsld] - [Fcsld] ' Subtracts 2005 csld from 2001 csld.
Dcsld: [Ccsld]/[Fcsld] ' Determines percentage of growth between 2001 and 2005.
The problem is that sometimes 2001 does not have data and it needs to move to either 2002 or 2003 depending on whether 2002 has data and if not move to 2003. How can I do this?
Ex.
Total caseload
2001 - 14250
2002 - 18376
2003 - 21967
2004 - 23128
2005 - 25432
The first query list all information for each year. The second query for for the second report has the following 4 fields for the caseload field.
Fcsld: csld ' record
Lcsld: csld ' last record
Ccsld: [Lcsld] - [Fcsld] ' Subtracts 2005 csld from 2001 csld.
Dcsld: [Ccsld]/[Fcsld] ' Determines percentage of growth between 2001 and 2005.
The problem is that sometimes 2001 does not have data and it needs to move to either 2002 or 2003 depending on whether 2002 has data and if not move to 2003. How can I do this?