The Customers table should now look like this, with the States arranged in descending alphabetical order:... The Customers table should now look like this, with the customer ID numbers
Trang 15 Click the button
The Customers table should now look like this, with BBC
highlighted:
6 In the Find and Replace window, click the button
Trang 2Sort and filter records
Sort in descending order
1 Click the State column header
The table should look like this:
2 On the Toolbar, click the icon
Trang 3The Customers table should now look like this, with the States
arranged in descending alphabetical order:
Trang 4Sort in ascending order
1 Click the Customer ID column header to highlight the column
2 On the Toolbar, click the icon
The Customers table should now look like this, with the
customer ID numbers arranged in ascending order:
Trang 5Filter records
1 Click in the State field for customer number 1
Notice that the State is Florida
2 On the Toolbar, click the icon
The Customers table should now look like this, showing all
customers whose State is Florida:
Trang 63 On the Toolbar, click the icon
The Customers table should show its original contents:
4 On the Menu Bar, click File, then Close to return to the
FoodStore1 database window
5 When the alert window appears, click the button
Trang 7When to filter
Filtering records works like a query, bringing up specific information from a table
But unlike a query, your filtering doesn’t remain part of the database
When you perform a query and save it, the query remains with the database, even after you close it Filtering does not
Since you can’t save filtering like a query, filter records when you need quick results Think of filtering as a temporary, quick, “on the spot” query
Trang 8Create table relationships
What are “relationships?”
Relationships are links that associate a field in one table with a field in another
An example is a school database with two tables:
Both tables have a Student Name field
By linking the Student Name fields, you make sure that John in the
Students table is the same John listed in the Math Class table:
Students Math Class
Student Name Address Student Name Grade
John John Jane Jane
Trang 9Examine current table relationships
1 On the Toolbar, click the icon
2 On the Toolbar, click the icon
3 When the Show Table window appears, double-click
Customers
Trang 10The Customers table should appear in the Relationships field:
4 In the Show Table window, double-click Employees
The Employees table should appear in the Relationships field:
5 Double-click Order Details
6 Double-click Orders
Trang 117 Double-click Products
8 In the Show Tables window, click the button
The relationships window should now look like this:
Trang 13
3 Click and drag the Orders table to place it between the
Customers table and Order Details table
4 Click the Order ID field in the Order Details table, then drag it
and rest it on top of the Order ID field in the Orders table
The Orders table should look like this:
Trang 145 Release the mouse button
When the Edit Relationships window appears, click the
button
The relationships window should now look like this:
The Order ID field in the Orders table is linked to the Order ID field in the Order Details table
The same Order ID number in both tables refers to the same
order
Trang 156 On the Menu Bar, click File, then Close to return to the
FoodStore1 database window
7 When the alert window appears, click the button
8 On the Menu Bar, click File, then Exit
Trang 16Working with Forms
In this section, you’ll learn how to:
Trang 17Modify forms
1 Start Access, then open the FoodStore1 database
2 In the Objects list, click Forms
3 Double-click Customer Form
Trang 184 When Customer Form opens, click the icon on the
Toolbar
Tip: The icon changes to Form View:
The form should look like this in Design View:
Trang 19Add a field
1 On the Toolbar, click the icon
A list of fields in the Customers table should appear:
Trang 202 Click and drag the Address 2 field from the Customers field list
to the form
Place it between the Address 1 box and the City box:
Trang 213 Release the mouse button
There should be a new box on the form:
4 Close the Field List window
Trang 22Change field position
1 Click the Address 2 box
2 Position the cursor over the move handle of the Address 2 box
It should turn into a black hand with a finger: