am trying to create a main report containing several subreports in Access 2003, all based on individual queries. The data for each subreport actually displays just fine, but I am having problems with controls in two places. The first is a "summary" page that ought to display the title of each subreport along with the number of records in each respective subreport, ex.
New Safety Concerns 30
All Closed Concerns 40 - etc, etc.
I have the following IIF statement placed in a textbox to return the value of a labeled (*)count text box that resides within the subreport:
This codes functions for the first subreport, but returns the #NAME? error for the rest.
The other error occurs in a textbox containing a different IIF Statement to identify if a report has no data:
Again, it works for the first subreport, but returns the #NAME? error for the rest.
I've attached the zipped db for further study, if anyone cares to take a look. But please forgive my novice design!
New Safety Concerns 30
All Closed Concerns 40 - etc, etc.
I have the following IIF statement placed in a textbox to return the value of a labeled (*)count text box that resides within the subreport:
Code:
=IIf(RPT_NEW_SAFETY.Report.HasData,RPT_NEW_SAFETY.Report![New Safety],0)
The other error occurs in a textbox containing a different IIF Statement to identify if a report has no data:
Code:
=IIf([RPT_NEW_SAFETY].[Report].[HasData]=True,Null,"None.").
I've attached the zipped db for further study, if anyone cares to take a look. But please forgive my novice design!
Comment