ACC2000: Error Previewing Subreports That Call Filter Macro (209482)
The information in this article applies to:
This article was previously published under Q209482 Moderate: Requires basic macro, coding, and interoperability skills.
SYMPTOMS
When you print a form or a report that contains a subform/subreport that calls an ApplyFilter macro action in its OnOpen event, you receive the
following error message:
The action or method is invalid because the form or report isn't bound
to a table or query.
Even if you do not receive this error message, you see that the ApplyFilter
action has not been carried out.
CAUSE
When printing, Microsoft Access erroneously tries to apply the filter that
is run from the macro to the outermost (main) report/form, rather than to
the subreport/subform.
The error occurs because the main report/form does not contain a RecordSource property setting to perform the ApplyFilter action against.
STATUSMicrosoft has confirmed that this is a problem in the Microsoft products that are listed at the beginning of this article.
Modification Type: | Minor | Last Reviewed: | 7/16/2004 |
---|
Keywords: | kbbug kberrmsg kbpending kbusage KB209482 |
---|
|