0% found this document useful (0 votes)
15 views2 pages

Create Query MS Access

This document provides a step-by-step guide on how to create a query in Microsoft Access, starting from opening the database to saving the query. It includes instructions on using the Query Design Tool, selecting tables, adding fields, setting criteria, sorting data, and running the query. An example use case is also provided to illustrate the process of filtering customer data by city.

Uploaded by

cometic072
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views2 pages

Create Query MS Access

This document provides a step-by-step guide on how to create a query in Microsoft Access, starting from opening the database to saving the query. It includes instructions on using the Query Design Tool, selecting tables, adding fields, setting criteria, sorting data, and running the query. An example use case is also provided to illustrate the process of filtering customer data by city.

Uploaded by

cometic072
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

How to Create a Query in Microsoft Access

**1. Open Your Database**

- Launch Microsoft Access and open the database where you want to create

the query.

**2. Open the Query Design Tool**

- Go to the Create tab in the ribbon.

- Click Query Design under the Queries group.

**3. Select Tables or Queries**

- In the 'Show Table' dialog box:

- Select the tables or queries you want to include in your query.

- Click Add, then Close when done.

**4. Add Fields to the Query**

- Drag and drop fields from the table(s) into the grid at the bottom of the Query

Design window.

OR

- Double-click fields in the table to add them to the grid.

**5. Set Criteria (Optional)**

- Use the Criteria row to filter results:

- For example, if you want to show records where 'Age' is greater than 30,

type >30 in the Criteria row under the 'Age' column.

- Add OR criteria below the Criteria row for alternative conditions.


**6. Sort Data (Optional)**

- Use the Sort row to organize results:

- Select 'Ascending' or 'Descending' for each field.

**7. Run the Query**

- Click Run (red exclamation mark icon) in the ribbon to see the query results.

**8. Save the Query**

- After running the query, save it:

- Go to File > Save or click the save icon.

- Enter a name for your query.

**9. Modify the Query (If Needed)**

- To edit:

- Right-click the query in the Navigation Pane and select Design View.

- Make changes and re-run the query.

**Example Use Case**

If you have a 'Customers' table and want to find customers in 'New York':

1. Add the 'Customers' table in Query Design.

2. Drag the 'Name' and 'City' fields to the grid.

3. In the Criteria row under 'City,' type 'New York'.

4. Run the query to see the filtered results.

You might also like