Professional Documents
Culture Documents
Access 2003 Lesson 14
Access 2003 Lesson 14
Access 2003 Lesson 14
Objectives
Page 2
At times, you might want to view only those records that match a specific criterion. A
filter is a technique that lets you view and work with a subset of data. Applying a filter
to an Access table, form, or query temporarily hides records that don't meet your search
criteria. For example, you may only want to work with data pertaining to a specific zip
code.
To Filter By Selection:
• Click anywhere in the field that you want to filter the records in the table.
• Click the Filter by Selection button in the standard toolbar or choose Records
Filter Filter By Selection from the menu bar to apply the filtering.
• The filter produces a display that shows only those records that match the filter's
definition (e.g., North Carolina). The status area reflects only the filtered records.
Page 3
Removing a Filter
To Remove a Filter:
• Click the Remove Filter button on the standard toolbar or choose Records
Remove Filter/Sort from the menu bar.
• The records revert to their ordering before the sort was applied.
• Optional, if you wish to reapply the filter, click the Apply Filter button (This
button acts like a toggle to turn the filter on and then turn the filter off).
Page 4
Saving a Filter
Access defaults to displaying all records in a table. Filters are not applied to the table
initially. Filtering table records actually change the table design. When you attempt to
close a table after a filter, Access will prompt you to save the changes to the table
design.
To save a filter:
When you open the table or form later, all the records will be visible. Click the Apply
Filter button to reapply the filter. However, Access saves only the last filter you create.
You can apply filters to filtered data to narrow your search even further.
To cancel a filter:
• Exit the table
• Click the No button in response to the question, Do you want to save changes to
the table?
The change is not saved; the table remains in its original design.
Page 5
The Filter Excluding Selection works in the opposite manner as the Filter by Selection.
Instead of specifying the filter to be used to view records (e.g., everybody in North
Carolina), Filter Excluding allows you to view data that does not include the specified
criterion (e.g., everybody not in North Carolina).
• Choose Record Filter Excluding Selection from the menu bar or right-click
and choose Filter Excluding Selection from the shortcut menu.
• All records except the criterion you excluded are now visible.
• The status area shows only the filtered records displayed on the screen.
Page 6
The Filter by Form feature is used when you are working in Form view and not in
Datasheet View. Filter by Form works the same way as the Filter by Selection method,
except the filtering is defined on a blank contact data entry form as if you were creating a
new contact record.
To Filter by Form:
• In Form View or Datasheet View, click the New Record button to create a
blank form or datasheet.
• Click the Apply Filter button to apply the filter and view the filtered records.
Page 7
Challenge!