Explanation:
"ReportName" - kind of obvious
acViewNormal - this specifies what type of window to use - normal is probably what you want
MyFilter - would be a filter to apply to the report
MyWhere - would be your where clause for the report
acWindowNormal - type of window to use, again Normal is most common.
MyOpenArgs" - you can pass text to the report that is read as "openning arguments". From the coding level, you can use this to have more control over the report beyond the Filter or Where clause.
Having said all this, most of the time just the defualts would be used, so the above command line may become...
docmd.OpenReport ("ReportName", , , , , )
Per help in MS Access Help, you probably want to use the filter option...
Filter Name A filter that restricts the report's records. You can enter the name of either an existing query or a filter that was saved as a query. However, the query must include all the fields in the report you are opening or have its OutputAllFields property set to Yes.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.