Filtering records means displaying only those records that match specific conditions. Microsoft Access allows you to filter data in tables, queries, and forms without deleting the other records.
A filter temporarily displays only the records that satisfy a condition. Records that do not match the condition are hidden from the current view.
| StudentID | StudentName | Course | Fees |
|---|---|---|---|
| 101 | Amit | ADCA | 10000 |
| 102 | Priya | Tally Prime | 4000 |
| 103 | Rahul | ADCA | 10000 |
| 104 | Neha | Web Development | 12000 |
If you filter the Course field to show only ADCA students, Access displays Amit and Rahul. The other records are hidden until the filter is removed or changed.
This filter displays records that match a selected value or condition.
Example: Select ADCA in the Course field and apply a filter to show records with that course.
Filter by Form lets you enter criteria into fields in a blank form-like grid to find matching records.
Example: Enter ADCA in the Course field to display ADCA students.
This feature allows you to create more detailed filtering conditions and combine criteria across multiple fields.
Example: Show students whose course is ADCA and whose fees are greater than 5000.
Some Access tables and forms provide a search box in the navigation controls. You can enter text to locate records containing matching information.
Follow these steps to filter records by a selected value:
Use Filter by Form when you want to specify criteria directly.
Enter ADCA in the Course field. After applying the filter, Access displays only the records matching that course.
You can enter criteria in more than one field to narrow the results further. The available controls may vary slightly depending on your Access version.
You can use comparison operators to filter numeric, date, and other supported fields.
| Operator | Meaning | Example Criteria |
|---|---|---|
| = | Equal to | =10000 |
| > | Greater than | >5000 |
| < | Less than | <5000 |
| >= | Greater than or equal to | >=10000 |
| <= | Less than or equal to | <=10000 |
| <> | Not equal to | <>ADCA |
For example, filtering the Fees field using >5000 displays students whose fees are greater than 5000.
You can combine criteria to find specific records. For example, you may want to display ADCA students whose fees are greater than 5000.
When criteria are combined with AND, a record must satisfy both conditions.
Course = "ADCA" Fees > 5000
When these criteria are entered in the same criteria row of an Access query, both conditions must be true.
OR allows a record to match either condition.
Course = "ADCA" OR Course = "Tally Prime"
In a query design grid, putting criteria on separate Criteria and Or rows is a common way to specify OR conditions.
After filtering records, you can remove the filter to display all records again.
Access will display the records again, provided no other active filter is restricting the results.
Create a Students table with the following fields:
Goal: Practice filtering records using values and conditions.
1. What is the main purpose of filtering?
2. Which operator means greater than?
3. What happens when you remove a filter?