Hello,
I have been working on this same report all day. Luckily, I have found answers to most of my questions thanks to TekTips! But...
I am still having difficulty with a subreport. I have subreport that is linked to the main report (by master/child fields and in the relationships) The report has two grouping levels - the first is by "Year" (the DateApproved field from the main table/report formatted as yyyy in the underlying query). The 2nd grouping level is by "ProtocolNumber" which is the linking field between the two tables/reports.
The subreport is located in the detail section the main report.
In the "Year" footer I have a =Sum([AwardAmount])of a main form currency field which works fine. Also in the "Year" footer I have a reference to =Sum([ExpenseAmount])field which is in the subform report footer, but not visible (=([rptSubBRFDisbursements].[Report]![TotalExpenseAmount]). This reference works for Year groups up until 2002 and 2003. For 2002 and 2003 the field displays "#Error".
The only thing that I can think of is that 2002 and 2003 have records (in the Main Report) that do not have records in the subReport. This doesn't cause any problems in the detail section where the subReport records either show up or don't. But, when I add the referenced field into the "Year" footer I get an error.
I'm not sure what to do. I know this is confusing. Does anyone have any ideas?
Thank you
I have been working on this same report all day. Luckily, I have found answers to most of my questions thanks to TekTips! But...
I am still having difficulty with a subreport. I have subreport that is linked to the main report (by master/child fields and in the relationships) The report has two grouping levels - the first is by "Year" (the DateApproved field from the main table/report formatted as yyyy in the underlying query). The 2nd grouping level is by "ProtocolNumber" which is the linking field between the two tables/reports.
The subreport is located in the detail section the main report.
In the "Year" footer I have a =Sum([AwardAmount])of a main form currency field which works fine. Also in the "Year" footer I have a reference to =Sum([ExpenseAmount])field which is in the subform report footer, but not visible (=([rptSubBRFDisbursements].[Report]![TotalExpenseAmount]). This reference works for Year groups up until 2002 and 2003. For 2002 and 2003 the field displays "#Error".
The only thing that I can think of is that 2002 and 2003 have records (in the Main Report) that do not have records in the subReport. This doesn't cause any problems in the detail section where the subReport records either show up or don't. But, when I add the referenced field into the "Year" footer I get an error.
I'm not sure what to do. I know this is confusing. Does anyone have any ideas?
Thank you