The first step towards creating a parameter query in Microsoft Office Access is to create a crosstab query. To accomplish this you will need to click the ‘Query Wizard’ in the ‘Other’ group under the ‘Create’ tab in MS Access. Then click the crosstab query wizard. Next, select the queries you would want to be used for crosstab query results. Complete the remaining settings in the crosstab query wizard and finally click the ‘Finish’ button to create the crosstab query.
After you have created the crosstab query, click the button labelled ‘Design’.
Access will pop up the Field list (the rectangular box which contains names of all the fields and appears in the upper half of the Microsoft Access window). Select all the fields before moving on to the next step.
Drag all the entries from the Field list into the query design grid. The query design grid would be in the bottom half of the Microsoft Access window while Access is in the Design mode.
Determine the field which you would want to use as the parameter for the parameter query. Click in the Criteria cell of the field that you choose.
In the Criteria cell, type in a prompt and type a square bracket at the start and end of the prompt. Next, click the button labelled ‘View’ which should be located on the toolbar. Microsoft Access will pop up a prompt in which you will be required to type the value which you would want to use as reference in the parameter query. Microsoft Access will execute the parameter query and will display all the records which match the criteria which you defined in the earlier steps.