Clear, practical technology insights BSOD Code Lookup · Windows Error Code Lookup · Wi-Fi Troubleshooting · PC Troubleshooting Checklist

MS Access 2003 - Lesson 19: Filtering Data: Microsoft Access

Microsoft Access is the focus of this article. A filter allows you to limit the records to view. Review the key facts and practical impact.

Table of Contents

Understanding Microsoft access requires more than a headline. The overview below breaks down the key facts, changes, and user impact.

Microsoft Access Overview

MS Access 2003 - Lesson 19: Filtering Data: Microsoft Access – Figure 1: Filter window Figure 1: Filter window

To create a filter, all you need to do is set a field and specify the criteria you want to apply to the field. If you wish, you can also determine how your school will be organized. (That way, you've just sorted and filtered the data at once.) For example, suppose you have a table containing inventory records (Table Inventory) shown in Figure 1. In this table, one of the fields is named Supplier. You use this field to track who provides a special item. Suppose you need to see which item is provided by Allied Industries. Using filters, you can limit the records that Access displays to the records that the provider is Allied industries. To create a filter, follow these steps: 1. Choose Filter from the Records menu, then select Advanced Filter / Sort from the submenu. 2. In the first column of the bottom pane, select the Supplier field. 3. In the Criteria cell of the column, type the = sign, followed by the phrase Allied Industries. When pressing ENTER, the Filter window appears as shown in Figure 2. (Note that Access automatically adds quotation marks around the provider name)

MS Access 2003 - Lesson 19: Filtering Data: Microsoft Access – Figure 2: Create a simple filter (2) Figure 2: Create a simple filter

4. Click your mouse on the Apply Tilter on the toolbar. Access applies the selection rules (specified by the filter) and displays the records of Allied Industries. The results of a subset of the statistics table will be easier to work with than the entire table. In this case, your filter instructs Access to look at each record in the table and only displays the records of the Supplier field containing the name Allied Industries.

Note: The filters you create can be simple or complex. You specify the criteria for the filter you are using as you use to create a validation rule for schools (The Rules of Validation have been mentioned in Chapter 3, 'Customize the components'). If you need help remembering the expressions you can use, go back to validation rules.

Remove a Filter It is not uncommon to use a filter to quickly view data in a particular way, and then want to remove the filter to see all the records. Access does this very easily and you can complete this operation using one of two different methods. The first (perhaps easiest) way is to drag the toolbar. When a filter is active, there is an icon like a funnel in the toolbar. In practice, there are 3 tools containing funnel-shaped images, but there is only one tool that contains a funnel-shaped image without any additional icons and it is at the time selected. If you put your mouse pointer over the tool, you will see its name is Remove Filter. Click Remove Filter, then all records will reappear, the filter is completely removed. Another method of removing a filter is to use menus. On the Record menu is the Remove Filter / Sort option. If you select this option, all records are displayed again. Save a filter Access only keeps the filter until you close the table. As a result, if you close the table and then decide to use the filter again, you will need to recreate a filter from scratch. That way can be boring and time consuming. To solve this problem, you can save the filter as a query (query). You will learn all the queries in Chapter 6 ' Using queries to review data '. Filters are related to queries, although they do not have many features or flexibility. When filters and queries are involved, Access allows you to store filters under a query name. To do this, make sure the Filter window is displayed. Then, choose Save As Query from the File menu or click your mouse on the Save As Query button on the toolbar. Access displays the Save As Query dialog box as shown in Figure 3.

MS Access 2003 - Lesson 19: Filtering Data: Microsoft Access – Figure 3: Save As Query dialog box (3) Figure 3: Save As Query dialog box

Enter the name you want to save the filter. The name can be any name you want. For example, if you want to save the filter showing the inventory tables provided by Allied Industries, you can use the name Supplied by Allied Industries. Type in the name and press ENTER or click your mouse on the OK button. To use the filter again, display the Filter window and select the Load From Query option from the File menu. Access displays the Applicable Filter dialog box shown in Figure 4.

MS Access 2003 - Lesson 19: Filtering Data: Microsoft Access – Figure 4: The Applicable Filter dialog box (4) Figure 4: The Applicable Filter dialog box

Highlight the name of the query you want to enter into the Filter and select OK. Access downloads Filter. You can use Filter or make any changes to filter as you like.

FAQ

What happened in MS Access 2003 - Lesson 19: Filtering Data: Microsoft Access?

Understanding Microsoft access requires more than a headline.

What factors influenced Microsoft access?

The overview below breaks down the key facts, changes, and user impact.

What was the practical impact on users?

Microsoft Access Overview Figure 1: Filter window To create a filter, all you need to do is set a field and specify the criteria you want to apply to the field.

Discussion

Reader Comments 0

Sign in with email or Google to join the discussion.