Access 2000
Sorting Records
Introduction
By the end of this lesson, learners should be able to:
- Review table records and form records concepts
- Perform a simple sort
- Save a sort
Review: Table and Form Concepts
In the preceding Access 2000 lessons, you learned to open an existing table and add, edit and delete table records. You also learned to open an existing form and add, edit and delete form records.
Remember, tables are the building blocks of any database. Forms are simply a way of customizing the display of data in a table, making it easy to enter and view data.
Different methods of accessing data require that you work in different views. When working with tables, you work in Datasheet View. When working with forms, you work in Form View.
In this lesson, you will learn to sort and find records.
Using a database, finding information is quick and easy. Depending on what you want to know, Access offers several search methods ranging from the simple to the complex.
Sort Records to Find Information
One method of finding information, sorting, allows you to access information quickly and easily.
Records can be sorted in ascending order (A-Z), and descending order (Z-A). You can sort by zip code, last name, first name, grade, teacher, etc. You can even sort by grade and then by last name within each grade.
It's easiest to see the results of a sort if you work in Datasheet View.
Working in Datasheet View
Remember, when working with tables, you work in Datasheet View. In Datasheet View, you can add, edit, or view data in a table. You can also check spelling, print the table data, filter or sort records, change how the datasheet is displayed, and change the table structure by adding or deleting columns.
Since it's easiest to see the results of a sort in Datasheet View, let's convert a form (Form View) to Datasheet View.
To Choose Datasheet View:
- Open the desired form or table you want to work with.
- Choose ViewDatasheet View from the menu bar.
- The form records are now displayed in Datasheet View.
Sorting Records
When sorting a table, you have made a change to the table design. When you attempt to close the table, Access asks you if you want to save the changes to the table design. If you choose to save the changes, click Yes. The sort order is saved. When you open the table again, the records will still be sorted. If you choose No, the change is not made and the table remains in its original design.
To Sort Records:
- Whether working in a table or form, switch to Datasheet View.
- Click anywhere in the column you want to sort by.
- Click the Ascending or Descending Sort button.
To sort by Form View, switch to Form View, select the field you want to sort by, and click the Sort button on the toolbar. To see the results, use the status area to move through the records.
Challenge!
- Open the Great Lake Elementary database.
- In the database window, choose the Table tab from the Object palette.
- Double-click the Student table to open it.
- Choose ViewDatasheet View from the menu bar.
- Practice performing a simple sort: Sort students alphabetically by Student Last Name.
- Close the database. When prompted to save changes, choose No.