Using parameters in a query in Microsoft Access allows you to create dynamic queries where the user can input values at runtime. Here’s how to do it:
- Go to the 'Create' tab.
- Select 'Query Design'.
- Select the table you want to use in the query and click 'Add Selected Tables'.
- Drag the fields you want to display in the report to the query grid.
- In the 'Criteria' row for the field you want to filter, enter a prompt enclosed in square brackets [].
- Click 'Run' to run the query.
- You’ll be prompted to enter the parameter values. Verify the results are correct. Click 'OK'.