The basic similarity between select queries and filters is that they both retrieve a subset of records from an underlying table or query. How you want to use the records that are returned determines whether you use a filter or a query.
Generally, use a filter to temporarily view or edit a subset of records while you're in a form or datasheet. Use a query if you want to do any or all of the following:
Note Even if you determine you need a query, consider taking advantage of the easy Filter By Form, Filter By Selection, or Filter For Input techniques for creating a filter, and then saving the filter as a query. This enables you to bypass the query's design grid altogether (unless you want to make additional changes to the query). Even so, when you open the query in Design view, you'll see how Microsoft Access filled in the design grid using the information from the filter. You can then use this information as a guide for making additional changes.
The following table identifies the similarities and differences between queries and filters.
Characteristics | Filters | Queries |
---|---|---|
Enable you to add more tables if you want to include their records in the subset that's returned | No | Yes |
Enable you to specify which fields you want to display in the results from the subset of records | No | Yes |
Appear as a separate object in the Database window | No | Yes |
Can be used on a closed table, query, or form | No | Yes |
Produce results that can be used as the source of data for a form or report | Yes | Yes |
Can calculate sums, averages, counts, and other types of totals | No | Yes |
Can sort records | Yes | Yes |
Enable you to edit data if editing is otherwise allowed | Yes | Yes, depending on the type of query. You can also perform bulk updates with an update query. |