ACC2002: "#ERROR" Message When You Reference Subreport Controls (288251)
The information in this article applies to:
This article was previously published under Q288251 Moderate: Requires basic macro, coding, and interoperability skills.
This article applies to a Microsoft Access database (.mdb) and to a Microsoft Access project (.adp).
For a Microsoft Access 2000 version of this article, see 208718.
SYMPTOMS
When you reference a subreport control from a main report, if the subreport does not return any matching records, you may receive the following message
#ERROR
for the referenced subreport control.
CAUSE
When the subreport has no data, it is not available. Referencing an empty
subreport results in an invalid operation.
RESOLUTION
Make sure that subreport fields that are referenced in a main report contain data by adding a function to test for this condition. See the "Steps to Reproduce the Behavior" and the "Steps to Work Around the Behavior" sections later in this article for an example of such a function.
REFERENCESFor more information about the HasData property, click Microsoft Access Help on the Help menu, type hasdata property in the Office Assistant or the Answer Wizard, and then click Search to view the topic.
Modification Type: | Major | Last Reviewed: | 11/6/2003 |
---|
Keywords: | kbdta kberrmsg kbprb KB288251 |
---|
|