Argument | Description |
reportname | A string expression that's the valid name of a report in the current database. |
If you execute Visual Basic code containing the OpenReport method in a library database, Microsoft Access looks for the report with this name first in the library database, then in the current database. | |
view | One of the following intrinsic constants: |
acViewDesign acViewNormal (default) acViewPreview | |
acViewNormal prints the report immediately. If you leave this argument blank, the default constant (acViewNormal) is assumed. | |
filtername | A string expression that's the valid name of a query in the current database. |
wherecondition | A string expression that's a valid SQL WHERE clause without the word WHERE. |
DoCmd.OpenReport "Sales Report", acViewNormal, "Report Filter"