Filtering and Sorting Data in Access: A Step-by-Step Guide and Practical Examples

Last update: 04/06/2025
Author Isaac
  • Master all types of filters and sorts to customize views in Access
  • Combine simple and advanced filtering to efficiently analyze complex information
  • Optimize performance using indexes, best practices, and configuration reuse

access

Filtering and sorting data in Access is one of the basic pillars for managing and extracting value from any relational database. If you have hundreds or thousands of records, finding relevant information can become a complicated task if you don't master the filtering and sorting tools it offers. Microsoft Access.

In this article, I explain in detail how you can filter and sort your data, combining all the basic and advanced options available in Access. Whether you're a beginner or experienced, after reading this content, you'll have a clear idea of ​​how to customize views, queries, and reports to display only the information you need from each table, form, or report.

Why is filtering and sorting so important in Access?

Access is designed to work with large volumes of information, where fast viewing and efficient searching are essential. If you've ever found yourself lost looking for a specific record, you know what it means to not know how to use filters. Filters and sorting act like a magnifying glass and a ruler: they allow you to focus and structure your data, temporarily hiding what you don't need and helping you spot patterns and trends.

The combination of both processes facilitates analysis, professional reporting and decision making. informedA well-filtered and organized log is much easier to understand, share, and use as a basis for new queries or reports.

Fundamental Concepts: What is filtering and sorting data in Access?

Before moving on to practice, it is important to clarify the terms:

  • Filter It means displaying on screen only the records that meet one or more criteria, hiding the rest temporarily and non-destructively.
  • Order It consists of restructuring the arrangement of records according to the value of one or more fields, either in ascending or descending order.

Both actions do not physically modify the data stored in the table, they only change how it is presented in your working view.

Where can I apply filters and sorts in Access?

Virtually any Access object—tables, queries, forms, and reports—allows you to filter and/or sort data. Depending on the object, some features are more accessible or offer different customization options. For example:

  • Boards: ideal for rapid filtering of raw data.
  • Queries: Filtering can be part of the query itself (criteria in the design row).
  • Forms: Very convenient for filtering visually or by form, designed for the end user.
  • Reports: allow you to apply filters in preview before printing or exporting.

Different types of filters that Access offers

access filters

Access integrates several filtering mechanisms to adapt to different scenarios and experience levels. Select the most appropriate filter type based on the complexity of what you're looking for:

Common filters

They are the fastest and most direct, since Access offers you preset options based on the data type in the column. You don't need to write criteria or formulas. Simply:

  • Click the drop-down arrow in the header of the column or field you want to filter.
  • You can select/unselect specific items, filter by ranges, or by specific conditions such as 'equals', 'contains', 'starts with', 'greater than', etc.
  • For date fields, you'll find filters by period, month, between dates, today, yesterday, last week, etc.
  • If you select “(Blanks)”, you filter out empty or null records in that field.
  How to uninstall programs on Mac step by step without leaving any residue

This method is ideal for quick reviews or when you just need to filter by a simple criterion.

Filter by selection

Allows you to filter based on a specific value by simply selecting it in the cell. For example, if you click a specific name and choose 'Filter by selection,' Access will hide all records except those with that exact value in that field. You can:

  • Select a word, part of the text, a date or a number, and filter by the selection (beginning, end, contains, etc.).
  • Combine multiple filters by selection on different fields to further refine the result.
  • To remove the filter, simply click 'Toggle Filter' or 'Clear All Filters' from the Home tab, in the Sort & Filter group.

Filter by form

This type of filter is especially powerful for searching for records that meet multiple criteria in different fields. Access generates a blank version of the form or spreadsheet, where you can fill in the fields with the values ​​you want to search for (you can leave some blank and fill in only the necessary ones). This is ideal for complex searches such as:

  • All people whose city is "Madrid" and whose position is "Manager."
  • You can perform alternative searches using the 'OR' tab, i.e., display records that meet one or the other set of criteria (e.g.: Country = 'Spain' OR Country = 'France').
  • As with all other modes, removing the filter is as simple as pressing 'Toggle Filter' again.

Advanced filter

Advanced mode is the closest thing to designing a query, allowing you to express complex and custom conditions in the design grid. It is recommended if you have experience with expressions and criteria:

  • Access the 'Advanced Filter or Sort' option within the 'Sort & Filter' group.
  • Add the fields you want to filter to the grid and specify criteria in the 'Criteria' row (you can use logical operators, functions, expressions like in queries).
  • Use the 'OR' row if you want to set alternative criteria.
  • You can load criteria from a previous query or save this filter as a new query for future use.

Applying filters step by step according to the type of object

Filter in tables

Let's say you have a table of employees and you want to see only those with salaries over €50.000:

  1. Open the table in Datasheet view.
  2. Click the arrow in the 'Salary' column header.
  3. Choose 'Number Filters' and select 'Greater than', enter 50000.
  4. Access will only show employees who meet that condition.

You can combine filters on other columns, for example: department = 'Sales' AND salary > 50000, using the form filter.

Filter in queries

Queries allow you to add criteria directly to the design row, so that each time you run the query, Access displays only the filtered data. For example, to view sales over 1000 euros:

  1. Open the query in design view.
  2. In the 'Criteria' row under the 'Amount' field, type ">1000".
  3. Run the query to return only the results that match.

You can combine multiple criteria using 'AND' or 'OR' to further refine.

Filtering data in forms

The forms are designed for an intuitive user experience. Filtering from here is as easy as clicking on the data you're interested in and applying the filter, or using the form filter for advanced searches.

  Windows 10 8.1 7: Troubleshooting VIA HD audio

Filters in reports

If you have a report (for example, a list of employees), you can filter from the report view itself before printing it:

  1. Right-click on the data (e.g., last name) and select 'Text Filters > Starts with'.
  2. Enter the letter or text and accept.

You can print the report by filtering only the part of the data that interests you at that time. To save the filter as a query and reuse it, use the 'Advanced Filter or Sort' feature within the ribbon.

How to remove or reapply filters

Removing a filter is easy: just press the 'Toggle Filter' button in the top bar. This temporarily removes the filter but leaves it saved, so you can reactivate it with another click. If you decide to clear the filter (using 'Clear All Filters'), Access forgets the selection, and you'll have to reapply it if you need it for future sessions.

Saving filters for reuse

Access remembers active filters when you close tables, forms, or reports, so you can automatically reapply the same filter in your next session.

Practical examples of filtering in Access

Simple filtering

If you have an order table and want to see only those placed in the last month:

  1. Filter the 'Order Date' column by selecting the corresponding month in the date filters.

Composite or custom filtering

See only employees with salaries over 50.000 euros and who work in sales:

  • Apply the composite filter from the advanced menu: salary > 50000 AND department = 'Sales'.

Or, if you prefer, use the by filling in both fields with the desired values.

Filter in reports for printing

Filter a report to show only customers from a specific city:

  • Open the report in print view, click the city field, and use the 'Equals' or 'Contains' text filter.

Print or export the filtered report as needed.

Sorting data in Access

Sorting data is equally important for presentation and understanding, whether in tables, queries, or reports.

Sort in tables

  1. Open the table in Datasheet view.
  2. Click the header of the column you want to sort.
  3. Click on the ascending (AZ) or descending (ZA) sort icon.

You can sort by multiple columns, although the main one will be the one selected first.

Sort in queries

In Design view, in the 'Sort' row, select whether you want to sort ascending or descending by one or more fields.

For example: Sort first by product name (ascending) and then by date (descending), to analyze recent sales of each product.

Sort in reports

Access sorting options from the report properties or use Design view to specify multi-field sort criteria.

Combining filters and sorts for advanced analysis

The true power of Access lies in combining filtering and sorting, creating customized views that allow you to uncover trends or analyze your business in depth.

  • First, filter key data to narrow your view, for example, sales over €2000.
  • Then sort by date, by employee, by product, or by any other relevant field.
  • You can save this configuration as a query to reuse when needed.
  Complete tutorial for Acer Care Center on Windows 11

Configuration persistence and reuse

Many users are unaware that Access allows you to save filter and sort settings, assign a name, and directly access that custom view in future sessions. Take advantage of this feature to always analyze key data without having to reconfigure everything from scratch.

Filters and sorting in forms and their user experience

In forms, you can apply filters from the interface itself, with intuitive menus or direct search fields.

  • Select the field or value and filter from the context menu.
  • Use form filters if you need to combine criteria across multiple fields.
  • Options can be found on the toolbar, quick access ribbons, or form-specific menus.

Exercises and practical cases to master filtering and sorting

To help you fully understand Access's versatility, here are some exercises and case studies to help you practice:

interactive exercises

  • Store inventory: Filter products with stock below 10 and sort them by descending price.
  • Project management: Display only pending tasks and sort them by ascending due date.
  • Customer tracking: Filter customers whose last purchase was more than three months ago and sort them by membership status.

Study cases

  • HR: Filter sales department employees and sort them by descending salary.
  • Sales Analysis: Filter only sales from the last quarter and sort them by descending quantity.
  • academic research: Filter current projects and sort them by start date.

Advanced tips and best practices for big data

If your database starts to grow and filters or sorts take a while, take note of these recommendations:

  • Well-configured indexes: Index the columns that will filter and sort most frequently to speed up searches.
  • Apply the filter first, then the sort: Processing fewer records is always faster.
  • Avoid overly complex filters in a single query. Break them down into simpler queries and combine them later if necessary.
  • Select only the columns you need to display; avoid 'select all' to improve efficiency.
  • Disable automatic updating in design view for very complex queries and work with a sample.
  • If you handle a lot of data, consider dividing the information into several related tables.

Additional features of filters in Access

Don't forget that Access shows you if there's a filter active with a funnel icon in the column header and in the record navigation bar.

If you hover over a filtered field header, you'll see a tooltip with the currently applied filter criteria. This is useful for quickly recalling the conditions without having to review all the settings.

access
Related article:
Advanced Queries in Access: Types, Usage and Detailed Examples