GCFLearnFree.org

I love you guys!”

Online Learner

GCFGlobal.org
Creating Opportunities For A Better Life.®
  • All Topics
  • Access 2013
  • More Query Design Options

Access 2013

Single page view print copy

More Query Design Options

Sorting queries

Access allows you to apply multiple sorts at once while you're designing your query. This allows you to view your data exactly the way you want.

A sort that includes more than one sorted field is called a multilevel sort. A multilevel sort allows you to apply an initial sort, then further organize that data with additional sorts. For instance, if you had a table full of customers and their addresses, you might choose to first sort the records by city, then alphabetically by last name.

When more than one sort is included in a query, Access reads the sorts from left to right. This means the leftmost sort will be applied first. In the below example, customers will be sorted first by the City where they live and then by the Zip Code within that city.

Screenshot of Access 2013A multi-level sort. The records will be sorted by city first.

To apply a multilevel sort:

  1. Open the query, and switch to Design view.
  2. Locate the field you would like to sort first. In the Sort: row, click the drop-down arrow to select either an ascending or descending sort.
    Screenshot of Access 2013Applying an Ascending sort to a field
  3. Repeat the process in the other fields to add additional sorts. Remember, the sorts are applied from left to right, so any additional sorts must be applied to fields located to the right of your primary sort. If necessary, you can rearrange the fields by clicking the top of a field and dragging it to a new location.
    Screenshot of Access 2013Creating a multi-level sort
  4. To apply the sort, click the Run command.
    Screenshot of Access 2013Clicking Run command
  5. Your query results will appear with the desired sort.
    Screenshot of Access 2013The sorted query results

You can also apply multilevel sorts to tables that don't have queries applied to them. On the Home tab on the Ribbon, select the Advanced drop-down command in the Sort & Filter group. Then, from the menu that appears, select Advanced Filter/Sort and create the multilevel sort as you normally would. When you're finished, click the Toggle Filter command to apply your sort.

Screenshot of Access 2013Clicking the Advanced Filter/Sort command
previous next
previous 1 2 3 4 5 6 7 next
Terms Of Use

©1998-2014 Goodwill Community Foundation, Inc. All rights reserved.