Mod J Book–19
4. Sort query information. The datasheet view of a query allows you to sort the information
in that query. Try this out with the Order relation. Download the Solomon Enterprises
database from the Web site that supports this text www.mhhe.com/haag. (Select XLM/J.
The name of the file is XLMJ_Solomon_Enterprises.mdb.) Click on the Queries tab and
open the Order relation in datasheet view. Sort the table alphabetically on Employee Last
Name. Place your cursor anywhere in the column you want to sort by (in this case Employee
Last Name), and click on the sort-ascending button. It has an “A” above a “Z” with an arrow
pointing downwards.
DISCUSSION
5. Filter query information. You can request Access to show you any other occurrences of a
data item that is in the same column. Use the same file you needed for question #6 above.
You can download it from the Web site for this text www.mhhe.com/haag. (Select XLM/J.
The name of the file is XLMJ_Solomon_Enterprises.mdb.) Filter the information so that only
those records in which the truck is a Ford. To do this click in the Truck Type column on any
one of the occurrences of Ford. Then, click on the Filter by Selection button (that’s the
button in the button bar with the funnel and a lightning strike). You will instantly see only
the three records where the truck is a Ford. To return the data to its previous state, click on
Remove Filter button (that’s the button that has the funnel without any other symbol). If
you click on this button again, it will reapply the filter.
DISCUSSION