MS Access - Lesson 10: Querying the database

Query allows you to select and filter data from multiple tables. Queries can be saved and used anytime needed.

TipsMake.com - Query allows you to select and filter data from multiple tables. Queries can be saved and used anytime needed.

Query Wizard

Query Wizard will introduce each step to build a query. To execute a query using the Query Wizard:

- Click the Create tab

- Click the Query Wizard button

images 1 of MS Access - Lesson 10: Querying the database
Images 1 of MS Access - Lesson 10: Querying the database
- Select the type of query you want to execute

- Click OK .

images 2 of MS Access - Lesson 10: Querying the database
Images 2 of MS Access - Lesson 10: Querying the database
- Select the fields you want to have in each table by selecting the field and clicking the button
images 3 of MS Access - Lesson 10: Querying the database
Images 3 of MS Access - Lesson 10: Querying the database

- To select fields from different tables, click on the Table / Queries down arrow

- Click Next.

images 4 of MS Access - Lesson 10: Querying the database
Images 4 of MS Access - Lesson 10: Querying the database
Complete Query wizard

- Enter a name for the query

- Click Finish .

images 5 of MS Access - Lesson 10: Querying the database
Images 5 of MS Access - Lesson 10: Querying the database

- The retrieval results will still display as follows:

images 6 of MS Access - Lesson 10: Querying the database
Images 6 of MS Access - Lesson 10: Querying the database
To switch between tables and queries:

- Open Navigation Pane

- Double click on the table name or query to view.

images 7 of MS Access - Lesson 10: Querying the database
Images 7 of MS Access - Lesson 10: Querying the database
Query design feature

You can design a query with the Query Design button. To design a query using Query Design:

- Click the Query Design button on the Create tab.

images 8 of MS Access - Lesson 10: Querying the database
Images 8 of MS Access - Lesson 10: Querying the database
- The Show Table dialog box appears allowing you to select the table

- Click Add to add the table and click the Close button to close the Show Table dialog box

images 9 of MS Access - Lesson 10: Querying the database
Images 9 of MS Access - Lesson 10: Querying the database
- Double click on the field name you want it to appear in the design grid

- Repeat the above steps for other schools

images 10 of MS Access - Lesson 10: Querying the database
Images 10 of MS Access - Lesson 10: Querying the database
- Click the Run button to execute the query.
images 11 of MS Access - Lesson 10: Querying the database
Images 11 of MS Access - Lesson 10: Querying the database
Query design with conditions

The query standard is the search for the conditions used in the query to retrieve data. You can set the standard as a specific number or data string, or data range. 'value' Only displays the record that matches the correct value (replace the word value with the word you want to find) = Equal Greater than> = Greater than or equal to <> Different Between X And ​​Y In a range (get the value between X and Y) Is Null Null value And Only true if condition exists Or True if either condition exists Not True if 1 case is incorrect
To facilitate query:

- Click on the query you want to add conditions

- Enter the query condition for in the Criteria section

images 12 of MS Access - Lesson 10: Querying the database
Images 12 of MS Access - Lesson 10: Querying the database
- Then click the Run button to execute the query.

4 | 1 Vote
« PREV : MS Word - Lesson 10:...
Some new features of... : NEXT »