ACC: Error Previewing Subreports That Call Filter MacroID: Q103131
|
Moderate: Requires basic macro, coding, and interoperability skills.
When you print a form or 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.
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.
Microsoft has confirmed this to be a problem in Microsoft Access 1.0, 1.1, 2.0, 7.0, and 97.
[LastName]="Fuller"
[Last Name]="Fuller"
The action or method is invalid because the form or report isn't bound to a table or query.
Action isn't valid because the form or report isn't bound to a table or query.
Additional query words: subreports reports subforms
Keywords : kberrmsg kbusage RptSub
Version : 1.0 1.1 2.0 7.0 97
Platform : WINDOWS
Issue type : kbbug
Last Reviewed: March 25, 1999