I am attempting to use the “OpenReport Method” to open a report based on a query that I name in the method.
The method syntax is “DoCmd.OpenReport reportname[, view][, filtername][, wherecondition]”.
My code is as follows “DoCmd.OpenReport "rptAllDataFields1", acPreview, "qryAllDataFields2"”. It won’t use the query I name.
The reason I am using this method is that I want to use the same report with several different queries.
What do you think?
The method syntax is “DoCmd.OpenReport reportname[, view][, filtername][, wherecondition]”.
My code is as follows “DoCmd.OpenReport "rptAllDataFields1", acPreview, "qryAllDataFields2"”. It won’t use the query I name.
The reason I am using this method is that I want to use the same report with several different queries.
What do you think?