I\'ve got an existing Access MDB. I\'m adding a command button to an existing Form that runs an existing report. The change being made is that this button needs to pass in
The Where clause of the docmd.openreport is a string that uses the same format as the where clause in a SQL statement.
The reason to put parameterize you query at the docmd instead of the RecordSource of the report is flexibility. You may have a need to open the report without any paremeter/return all the records or have the ability to filter on different fields.