Escolar Documentos
Profissional Documentos
Cultura Documentos
Unit 1
Chapter 1
Chapter 2
Chapter 3
Performing Queries
Chapter 4
001-042-Access2010-L1-Ch01.indd 1
9/29/10 12:55:48 PM
001-042-Access2010-L1-Ch01.indd 2
9/22/10 1:19:49 PM
CHAPTER
Access
Access2010L1C1
Note: Before beginning the projects, copy to your storage medium the
Access2010L1C1 subfolder from the Access2010L1 folder on the CD
that accompanies this textbook. Make sure you have copied the files
from the CD to your storage medium. Open all database files from
your removable storage device and not directly from the CD since
Access database files on the CD are read-only. Steps on how to copy a
folder are presented on the inside of the back cover of this textbook. Do
this every time you start a chapters projects.
3
001-042-Access2010-L1-Ch01.indd 3
9/22/10 1:19:54 PM
Access Level 1
001-042-Access2010-L1-Ch01.indd 4
Product Number
101-S3
209-L
209-XL
209-XXL
210-M
210-L
299-M2
299-M3
299-M5
299-W1
299-W3
299-W4
299-W5
602-XR
Product
ICE snow goggles, clear
ICE snow goggles, bronze
Binoculars, 8 x 42
Binoculars, 10.5 x 45
Binoculars, 10 x 50
Two-person dome tent
Three-person dome tent
K-2 one-person tent
K-2 two-person tent
AG freestyle snowboard, X50
AG freestyle snowboard, X60
Lang blunt snowboard
Lang blunt snowboard, wide
Solar battery pack
Silo portable power pack
Supplier Number
1 54
2 68
3 68
4 68
5 68
6 68
7 31
8 31
9 31
10 31
11 31
12 31
13 31
14 35
Order#
Product#
558-C
559-B
602-XR
602-XT
602-XX
647-1
648-2
651-1
652-2
804-50
804-60
897-L
897-W
901-S
917-S
UnitsOrdered
10
25
25
20
15
25
10
10
10
8
10
10
10
5
Orders
0
0
5
0
0
15
0
0
0
0
0
0
0
0
0
UnitsOnOrder
OrderDate
1/2/2012
1/2/2012
1/2/2010
1/2/2010
1/2/2010
1/2/2010
1/16/2012
1/16/2012
1/16/2012
1/16/2012
1/16/2012
1/16/2012
1/16/2012
1/16/2012
UnitsInStock
18
22
3
5
7
10
5
8
12
7
8
8
4
16
8
Order Amount
$1,137.50
$173.75
$180.00
$145.80
$97.35
$162.25
$887.90
$887.90
$887.90
$602.32
$752.90
$752.90
$752.90
$2,145.00
Page 2
Supplier#
68
68
35
35
35
99
99
99
99
70
70
70
70
38
38
Products
7/6/2012
ReorderLevel
15
20
5
4
5
15
10
10
10
10
5
7
3
15
10
7/6/2012
Supplier#
10
25
31
35
38
42
54
68
70
84
99
Suppliers Table
Products Table, Page 1
Orders Table
Unit 1
9/22/10 1:20:04 PM
Product#
101-S1B
101-S1R
101-S2B
101-S2R
101-S3B
101-S3R
209-L
209-XL
209-XXL
210-L
210-M
210-XL
299-M1
299-M2
299-M3
299-M4
299-M5
299-W1
299-W2
299-W3
299-W4
299-W5
299-W6
371-L
371-M
371-XL
371-XXL
375-L
375-M
375-S
442-1A
442-1B
443-1A
443-1B
StreetAddress
5600 Carver Road
805 First Avenue
2104 Union Street
1059 Pike Street
5845 Jefferson Street
3894 Old Yale Road
1039 South 22nd
14 Fourth Avenue
998 North 42nd Street
675 Third Street
402 Yukon Drive
City
Port Moody
Burnaby
Seattle
Seattle
Seattle
Abbotsford
Vancouver
Vancouver
Vancouver
Vancouver
Bellingham
Product
SL 0-degrees down sleeping bag, black
SL 0-degrees down sleeping bag, red
SL 15-degrees synthetic sleeping bag, black
SL 15-degrees synthetic sleeping bag, red
SL 20-degrees synthetic sleeping bag, black
SL 20-degrees synthetic sleeping bag, red
Gordon wool ski hat, L
Gordon wool ski hat, XL
Gordon wool ski hat, XXL
Tech-lite ski hat, L
Tech-lite ski hat, M
Tech-lite ski hat, XL
HT waterproof hiking boots, MS13
HT waterproof hiking boots, MS12
HT waterproof hiking boots, MS11
HT waterproof hiking boots, MS10
HT waterproof hiking boots, MS9
HT waterproof hiking boots, WS11
HT waterproof hiking boots, WS10
HT waterproof hiking boots, WS9
HT waterproof hiking boots, WS8
HT waterproof hiking boots, WS7
HT waterproof hiking boots, WS6
Lite-tech ski gloves, ML
Lite-tech ski gloves, MM
Lite-tech ski gloves, MXL
Lite-tech ski gloves, MXXL
Lite-tech ski gloves, WL
Lite-tech ski gloves, WM
Lite-tech ski gloves, WS
Polar backpack, 150BR
Polar backpack, 150RW
Polar backpack, 250BR
Polar backpack, 250RW
SupplierName
Hopewell, Inc.
Langley Corporation
Sound Supplies
Emerald City Products
Hadley Company
Fraser Valley Products
Manning, Inc.
Freedom Corporation
Rosewood, Inc.
Macadam, Inc.
KL Distributions
Page 1
Supplier#
54
54
54
54
54
54
68
68
68
68
68
68
31
31
31
31
31
31
31
31
31
31
31
68
68
68
68
68
68
68
42
42
42
42
Products
Page 1
Prov/State
BC
BC
WA
WA
WA
BC
BC
BC
BC
BC
WA
Suppliers
0
0
0
15
15
10
25
25
20
25
15
0
0
10
10
0
10
8
0
10
10
10
0
10
0
10
0
0
20
20
0
10
0
15
ReorderLevel
15
15
15
15
15
10
25
25
20
25
15
20
10
10
10
10
10
8
8
10
10
10
10
10
15
10
10
20
20
20
10
10
15
15
7/6/2012
EmailAddress
hopewell@emcp.net
langley@emcp.net
ssupplies@emcp.net
ecproducts@emcp.net
hcompany@emcp.net
fvproducts@emcp.net
manning@emcp.net
freedom@emcp.net
rosewood@emcp.net
macadam@emcp.net
kldist@emcp.net
UnitsOnOrder
Field1
(604) 555-3843
(604) 555-1200
(206) 555-4855
(206) 555-7728
(206) 555-8003
(604) 555-1455
(604) 555-0087
(604) 555-2155
(778) 555-6643
(604) 555-5522
(360) 555-3711
UnitsInStock
16
17
21
12
8
4
21
14
10
17
6
22
8
2
6
7
9
5
9
3
2
3
11
3
5
3
12
22
3
6
12
9
14
6
PostalCode
V3H 1A4
V3J 1C9
98105
98102
98107
V2S 1A9
V5K 1R1
V5K 2C7
V5K 2N8
V5K 2R9
98435
7/6/2012
Page 1
Customer Number
Last Name
1 Blakely
2 Donato
3 Girard
4 Hernandez
5 Ives-Keller
6 Kim
First Name
Mathias
Antonio
Stephanie
Angelica
Shane
Keung
Address
7433 224th Ave. E.
18225 Victoria Dr.
430 Deer Lake Pl.
1233 E. 58th Ave.
9055 Gilbert Rd.
730 West Broadway
City
Vancouver
Vancouver
Burnaby
Vancouver
Richmond
Vancouver
State Province
BC
BC
BC
BC
BC
BC
ZIP Postal
V5K 2M7
V5K 1H4
V3J 1E4
V5K 3H3
V6Y 1B2
V5K 5B2
Mailers
7/6/2012
Customers
Customers Table
Exploring a Database
A database is comprised of a series of objects such as tables, queries, forms, and
reports that you use to enter, manage, view, and print data. Data in a database
is organized into tables, which contain information for related items such as
customers, employees, orders, and products. To view the various objects in a
database, you will open a previously created database and then navigate in the
database and open objects.
To create a new database or open a previously created database, click the
Start button on the Taskbar, point to All Programs, click Microsoft Office, and then
click Microsoft Access 2010. (These steps may vary depending on your system
configuration.) This displays the Access New tab Backstage view as shown in
Figure 1.1. The Backstage view organizes database management tasks into tabs.
Quick Command buttons such as Save, Save Object As, Save Database As, Open,
and Close Database are located at the top left pane in the view. Below the Quick
Command buttons the view is organized into tabs such as Info, Recent, New,
Print, Save & Publish, and Help.
Chapter 1
001-042-Access2010-L1-Ch01.indd 5
Start
9/22/10 1:20:20 PM
Click Open to
display the Open
dialog box where
you can navigate
to the desired
folder and then
double-click the
database file.
To create a new database, click the folder icon that displays to the right of the
file name at the right side of the screen, navigate to the location where you want
to save your database, and then click the Create button.
Create
Quick Steps
Open a Database
1. Open Access.
2. Click Open button.
3. Navigate to desired
location.
4. Double-click database.
Close
Access Level 1
001-042-Access2010-L1-Ch01.indd 6
Unit 1
9/22/10 1:20:28 PM
Title bar
File tab
ribbon
Minimize the
ribbon button
Click to enable contents
of database.
work area
Navigation pane
Status bar
Description
Click this tab and the Backstage view displays containing buttons and tabs
for working with and managing databases.
Title bar
Tabs
Ribbon
Message bar
Displays security alerts if the database you open contains potentially unsafe
content.
Navigation pane
Work area
Status bar
Displays number of pages and words, View buttons, and the Zoom slider bar.
A security warning message bar may appear below the ribbon if Access
determines the file you are opening did not originate from a trusted location on
your computer and may have viruses or other security hazards. This often occurs
when you copy a file from another medium (such as a CD or the Web). Active
content in the file is disabled until you click the Enable Content button. The
message bar closes when you identify the database as a trusted source. Before
making any changes to the database, you must click the Enable Content button.
Chapter 1
001-042-Access2010-L1-Ch01.indd 7
9/22/10 1:20:36 PM
Description
Table
Query
Used to display data from a table or related tables that meets a conditional
statement and/or to perform calculations. For example, display all records
from a specific month or display only those records containing a specific
city.
Form
Report
Shutter
Project 1
Access Level 1
001-042-Access2010-L1-Ch01.indd 8
Database objects display in the Navigation pane. Control what displays in the
pane by clicking the Menu bar at the top of the Navigation pane and then
clicking the desired option at the drop-down list. For example, to display a list
of all saved objects in the database, click the Object Type option at the drop-down
list. This view displays the objects grouped by typeTables, Queries, Forms, and
Reports. To open an object, double-click the object in the Navigation pane. The
object opens in the work area and a tab displays with the object name at the left
side of the object.
Part 1 of 1
Unit 1
9/22/10 1:20:42 PM
Step
5
Step
7
Step
15
Chapter 1
001-042-Access2010-L1-Ch01.indd 9
9/22/10 1:20:48 PM
P
Managing Tables
In a new database, tables are the first objects created since all other database
objects rely on a table for the source of the data. Maintenance of the database and
tables in the database is important to keep the database up to date. Managing
tables in a database may include inserting or deleting records, inserting or deleting
fields, renaming fields, and creating a hard copy of the table by printing the table.
10
Access Level 1
001-042-Access2010-L1-Ch01.indd 10
Unit 1
9/29/10 12:56:51 PM
Current record
Previous record
Next record
Last record
To add a new record to the open table, make sure the Home tab is selected
and then click the New button in the Records group. This moves the insertion
point to the first field in the blank row at the bottom of the table and the Current
Record box on the Record Navigation bar indicates what record you are creating
(or editing). In addition to clicking the New button in the Records group in the
Home tab, you can create a new record by clicking the New (blank) record button
on the Record Navigation bar.
When working in a table, press the Tab key to make the next field active
or press Shift + Tab to make the previous field active. You can also click in the
desired field using the mouse. When you begin typing data for the first field
in the record, another row of cells is automatically inserted below the current
row and a pencil icon displays in the record selector bar at the beginning of the
current record. The pencil icon indicates that the record is being edited and that
the changes to the data have not been saved. When you enter the data in the last
field in the record and then move the insertion point out of the field, the pencil
icon is removed, indicating that the data is saved.
When maintaining a table, you may need to delete a record when you no
longer want the data in the record. One method for deleting a record is to click
in one of the fields in the record, make sure the Home tab is selected, click the
Delete button arrow, and then click Delete Record at the drop-down list. At the
message that displays asking if you want to delete the record, click the Yes button.
When you click in a field in a record, the Delete button displays in a dimmed
manner unless specific data is selected.
When you are finished entering data in a record in a table, the data
is automatically saved. Changes to the layout of a table, however, are not
automatically saved. For example, if you delete a record in a table, when you close
the table you will be asked if you are sure you want to delete the record.
Project 2a
Chapter 1
001-042-Access2010-L1-Ch01.indd 11
Quick Steps
Add New Record
1. Open table.
2. Click New button in
Home tab.
3. Type data.
OR
1. Open table.
2. Click New (blank)
record button on
Record Navigation
bar.
3. Type data.
Delete Record
1. Open table.
2. Click Delete button
arrow in Home tab.
3. Click Delete Record.
4. Click Yes button.
New
Delete
Part 1 of 7
11
9/22/10 1:21:16 PM
Step
6
Step
7a
Steps
7b-7i
12
Access Level 1
001-042-Access2010-L1-Ch01.indd 12
Unit 1
9/22/10 1:21:22 PM
Step
11b
Step
11a
Step
12
Step 10
Quick Steps
When managing a database, you may determine that you need to add additional
information to a table. For example, you might decide that you want to insert
a field for contact information, a field for cell phone numbers, or a field for
the number of items in stock. To insert a new field in a table, open the table in
Datasheet view and then click in the first field below the Click to Add heading.
Type the desired data in the field for the first record, press the Down Arrow key
Chapter 1
001-042-Access2010-L1-Ch01.indd 13
13
9/29/10 12:57:25 PM
Quick Steps
Move Field Column
1. Select column.
2. Position mouse
pointer on heading.
3. Hold down left mouse
button.
4. Drag to desired
location.
5. Release mouse button.
Delete Field
1. Click in field.
2. Click Delete button
arrow in Home tab.
3. Click Delete Column.
4. Click Yes button.
to make the field below active, and then type the desired data for the second
record. Continue in this manner until you have entered data in the new field for
all records in the table. In addition to pressing the Down Arrow key to move the
insertion point down to the next field, you can click in the desired field using the
mouse. Or, you can press the Tab key until the desired field is active.
You add a new field to the right of the existing fields. In some situations you
may want to change this location. Move a field by positioning the mouse pointer
on the field heading until the pointer displays as a downward-pointing black arrow
and then clicking the left mouse button. This selects the entire column. With
the field column selected, position the mouse pointer on the heading (the mouse
pointer should display as a white arrow pointing up and to the left), hold down
the left mouse button, drag to the left until a thick, black vertical line displays in
the desired location, and then release the mouse button. The thick, black vertical
line indicates the position where the field column will be positioned when you
release the mouse button. In addition, the pointer displays with the outline of a
gray box attached to it, indicating that you are performing a move operation.
Delete a field column in a manner similar to deleting a row. Click in one of
the fields in the column, make sure the Home tab is selected, click the Delete
button arrow, and then click Delete Column at the drop-down list. At the message
that displays asking if you want to delete the column, click the Yes button.
Project 2b
Part 2 of 7
Step
1c
Step
1d
Step
2b
14
Access Level 1
001-042-Access2010-L1-Ch01.indd 14
Unit 1
9/22/10 1:21:47 PM
Quick Steps
Project 2c
Change Table
Column Width
Double-click column
boundary.
OR
Select columns, then
double-click column
boundary.
OR
Drag column boundary
to desired position.
Automatically adjust
column widths in
an Access table in
the same manner
as adjusting column
widths in an Excel
worksheet.
Part 3 of 7
Step
2
Chapter 1
001-042-Access2010-L1-Ch01.indd 15
15
9/22/10 1:21:59 PM
Printing a Table
Quick Steps
Print a Table
1. Click File tab.
2. Click Print tab.
3. Click Quick Print
option.
OR
1. Click File tab.
2. Click Print tab.
3. Click Print option.
4. Click OK.
In some situations, you may want to print the data in a table. To do this, open
the table, click the File tab, and then click the Print tab. This displays the Print
tab Backstage view as shown in Figure 1.6. Click the Quick Print option to send
the table directly to the printer without any changes to the printer setup or the
table formatting. Click the Print option to display the Print dialog box where you
can specify the printer, the page range, and specific records. Click OK to close the
dialog box and send the table to the printer. By default, Access prints a table on
letter-size paper in portrait orientation.
16
Access Level 1
001-042-Access2010-L1-Ch01.indd 16
Unit 1
9/22/10 1:22:12 PM
Previewing a Table
Before printing a table, you may want to display the table in Print Preview to
determine how the table will print on the page. To display a table in Print Preview,
as shown in Figure 1.7, click the Print Preview option at the Print tab Backstage
view.
Use options in the Zoom group in the Print Preview tab to increase or
decrease the size of the table display. You can also change the size of the table
display using the Zoom slider bar located at the right side of the Status bar. If
your table spans more than one page, you can use buttons on the Navigation bar
to display the next or previous page in the table.
In Print Preview you can print the table by clicking the Print button located at
the left side of the Print Preview tab. Click the Close Print Preview button if you
want to close Print Preview and return to the table without printing the table.
Quick Steps
Preview a Table
1. Click File tab.
2. Click Print tab.
3. Click Print Preview
option.
Print Preview
Size
Margins
Print Preview
ribbon tab
status bar
Navigation bar
Chapter 1
001-042-Access2010-L1-Ch01.indd 17
17
9/22/10 1:22:20 PM
Quick Steps
Display Page Setup
Dialog Box
1. Click File tab.
2. Click Print tab.
3. Click Print Preview
option.
4. Click Page Setup
button.
Click the Page Setup button in the Page Layout group and the Page Setup
dialog box displays as shown in Figure 1.8. At the Page Setup dialog box with the
Print Options tab selected, notice that the default margins are 1 inch. Change
these defaults by typing a different number in the desired margin text box. By
default, the table name prints at the top center of the page along with the current
date printed in the upper right side of the page. In addition, the word Page
followed by the page number prints at the bottom of the page. If you do not want
the name of the table and the date as well as the page number printed, remove the
check mark from the Print Headings option at the Page Setup dialog box with the
Print Options tab selected.
Landscape
Click the Page tab at the Page Setup dialog box and the dialog box displays
as shown in Figure 1.9. Change the orientation with options in the Orientation
section, and change the paper size with options in the Paper section. Click the
Size option button and a drop-down list displays with paper sizes similar to the
options available at the Size button drop-down list in the Page Size group in the
Print Preview tab. Specify the printer with options in the Printer for (table name)
section of the dialog box.
Page Setup
Figure 1.8 Page Setup Dialog Box with Print Options Tab Selected
Enter measurements in
these boxes to change
page margins.
Remove the check
mark from this check
box if you do not want
the table name, date,
and page number
printed.
18
Access Level 1
001-042-Access2010-L1-Ch01.indd 18
Unit 1
9/22/10 1:22:27 PM
Figure 1.9 Page Setup Dialog Box with Page Tab Selected
Click this option
to change the
page orientation
to landscape.
Change the
paper size with
this option.
Project 2d
Part 4 of 7
Step
2a
Step
2b
Step
2c
Step
2d
Chapter 1
001-042-Access2010-L1-Ch01.indd 19
19
9/22/10 1:22:30 PM
Step
2e
Step
2g
Step
4d
Step
4e
Step
4f
Step
4g
Step
4h
Step
4i
20
Access Level 1
001-042-Access2010-L1-Ch01.indd 20
Step
4j
Unit 1
9/22/10 1:22:40 PM
Designing a Table
Tables are the first objects created in a new database and all other objects in a
database rely on a table for data. Designing a database involves planning the
number of tables needed and the fields that will be included in each table. Each
table in a database should contain information about one subject only. For
example, the Suppliers table in the AL1-C1-PacTrek.accdb database contains data
only about suppliers and the Products table contains data only about products.
Database designers often create a visual representation of the databases
structure in a diagram similar to the one shown in Figure 1.10. Each table is
represented by a box with the table name at the top of the box. Within each
box, the fields that will be stored in the table are listed with the field names that
will be used when the table is created. Notice that one field in each table has an
asterisk next to the field name. The field with the asterisk is called a primary
key. A primary key holds data that uniquely identifies each record in a table
and is usually an identification number. The lines drawn between each table in
Figure 1.10 are called join lines and represent links established between tables
(called relationships) so that data can be extracted from one or more tables.
Notice the join lines point to a common field name included in each table that is
to be linked. (You will learn how to join [relate] tables in Chapter 2.) A database
with related tables is called a relational database.
Notice the join line in the database diagram that connects the Supplier# field
in the Suppliers table with the Supplier# field in the Products table and another
join line that connects the Supplier# field in the Suppliers table with the Supplier#
field in the Orders table. In the database diagram, a join line connects the
Product# field in the Products table with the Product# field in the Orders table.
When designing a database, you need to consider certain design principles.
The first principle is to reduce redundant (duplicate) data because redundant
data increases the amount of data entry required, increases the chances for errors
and inconsistencies, and takes up additional storage space. The Products table
contains a Supplier# field and that field reduces the redundant data needed in the
table. For example, rather than typing the supplier information in the Suppliers
Organize data in
tables to minimize or
eliminate duplication.
Chapter 1
001-042-Access2010-L1-Ch01.indd 21
21
9/22/10 1:23:03 PM
table AND the Products table, you type the information once in the Suppliers
table and then join the tables with the connecting field Supplier#. If you need
information on suppliers as well as specific information about products, you can
draw the information into one object such as a query or report using data from
both tables. When you create the Orders table, you will use the Supplier# field
and the Product# field rather than typing all of the information for the suppliers
and the product description. Typing a two-letter unique identifier number for a
supplier greatly reduces the amount of typing required to create the Orders table.
Inserting the Product# field in the Orders table eliminates the need to type the
product description for each order; instead, you type a unique five-, six-, or sevendigit identifier number.
Creating a Table
Creating a new table generally involves determining fields, assigning a data type
to each field, modifying properties, designating the primary key, and naming the
table. This process is referred to as defining the table structure.
The first step in creating a table is to determine the fields. A field, commonly
called a column, is one piece of information about a person, a place, or an item.
Each field contains data about one aspect of the table subject such as a company
name or product number. All fields for one unit, such as a customer or product, are
considered a record. For example, in the Suppliers table in the AL1-C1-PacTrek.accdb
database, a record is all of the information pertaining to one supplier. A collection of
records becomes a table.
A database table
contains fields that
describe a person,
customer, client, object,
place, idea, or event.
Table
22
Access Level 1
001-042-Access2010-L1-Ch01.indd 22
When creating a new field (column), determine the type of data you will
insert in the field. For example, one field might contain text such as a name
or product description, another field might contain an amount of money, and
another might contain a date. The data type defines the type of information
Access will allow to be entered into the field. For example, Access will not allow
alphabetic characters to be entered into a field with a data type set to Date &
Unit 1
9/22/10 1:23:05 PM
Time. The Add & Delete group in the Table Tools Fields tab contains five buttons
for assigning data types plus a More Fields button. A description of the five data
types assigned by the buttons is shown in Table 1.3.
More Fields
Description
Text
Number
Currency
Use this data type to ensure dates and times are entered
and sorted properly.
Yes/No
Chapter 1
001-042-Access2010-L1-Ch01.indd 23
23
9/22/10 1:23:06 PM
In Project 2e, you will create the Orders table as shown in Figure 1.10.
Looking at the diagram in Figure 1.10, you will assign the following data types to
the columns:
Order#
Supplier#
Product#
UnitsOrdered
Amount
Currency
OrderDate
When you click a data type button, Access inserts a field to the right of the
ID field and selects the field heading Field1. Type a name for the field, press the
Enter key, and Access selects the next field column name Click to Add and inserts
a drop-down list of data types. This drop-down list contains the same five data
types as the buttons in the Add & Delete group as well as additional data types.
Click the desired data type at the drop-down list, type the desired field name, and
then press Enter. Continue in this manner until you have entered all field names
for the table. When naming a field, consider the following naming guidelines:
Project 2e
Part 5 of 7
Step
1c
24
Access Level 1
001-042-Access2010-L1-Ch01.indd 24
Unit 1
9/22/10 1:23:11 PM
Step
1d
Step
1e
Step
4
Chapter 1
001-042-Access2010-L1-Ch01.indd 25
25
9/22/10 1:23:15 PM
At the Enter Field Properties dialog box, type the desired name for the field
heading in the Name text box. If you want a more descriptive name for the
field heading, type the heading in the Caption text box. The text you type will
display as the field heading but the actual field name will still be part of the
table structure. Creating a caption is useful if you abbreviate a field name or
want to show spaces between words in a field name and a caption provides more
information for others using the database. The name is what Access uses for the
table and the caption is what displays to users.
The Description text box is another source for providing information about
the field to someone using the database. Type information in the text box that
specifies what should be entered in the field. The text you type in the Description
text box displays at the left side of the Status bar when a field in the column is
active. For example, if you type Enter the total amount of the order in the Description
text box for the Amount field column, that text will display at the left side of the
Status bar when a field in the column is active.
26
Access Level 1
001-042-Access2010-L1-Ch01.indd 26
Unit 1
9/22/10 1:23:32 PM
Project 2f
Part 6 of 7
Step
2
Step
4a
Step
4b
Step
4c
Step
4d
Step
4e
Step
4f
Chapter 1
001-042-Access2010-L1-Ch01.indd 27
27
9/22/10 1:23:33 PM
Text
The options in the Quick Start category not only define a data type but also
assign a field name. Additionally, with options in the Quick Start category, you
can add a group of related fields in one step. For example, if you click the Name
option in the Quick Start category, Access inserts the LastName field in one column
and the FirstName field in the next column. Both fields are automatically assigned
a text data type. If you click the Address option in the Quick Start category,
Access inserts five fields including Address, City, StateProvince, ZIPPostal, and
CountryRegion, all with the text data type assigned.
Default Value
Field Size
28
Access Level 1
001-042-Access2010-L1-Ch01.indd 28
Unit 1
9/22/10 1:23:51 PM
Project 2g
Part 7 of 7
Step
1c
Step
1d
Step
1h
Chapter 1
001-042-Access2010-L1-Ch01.indd 29
29
9/22/10 1:23:53 PM
Step
1i
Step
2c
Step
2d
Step
2e
Step
2f
Step
4
30
Access Level 1
001-042-Access2010-L1-Ch01.indd 30
Unit 1
9/22/10 1:24:09 PM
Step
6d
Step
6c
Chapter 1
001-042-Access2010-L1-Ch01.indd 31
31
9/22/10 1:24:30 PM
Chapter Summary
In Access, open an existing database by clicking the Open button at the New
tab Backstage view. At the open dialog box, navigate to the location where the
database is located, and then double-click the desired database.
Only one database can be open at a time.
Some common objects found in a database include tables, queries, forms, and
reports.
The Navigation pane displays at the left side of the Access screen and displays
the objects that are contained in the database.
Open a database object by double-clicking the object in the Navigation pane.
Close an object by clicking the Close button that displays in the upper right
corner of the work area.
When a table is open, the Record Navigation bar displays at the bottom of the
screen and contains a button for displaying records in the table.
Insert a new record in a table by clicking the New button in the Records group
in the Home tab or by clicking the New (blank) record button in the Record
Navigation bar. Delete a record by clicking in a field in the record you want
to delete, clicking the Delete button arrow in the Home tab, and then clicking
Delete Record at the drop-down list.
To add a column to a table, click the first field below the Click to Add column
heading and then type the desired data. To move a column, select the column
and then use the mouse to drag a thick, back vertical line (representing the
column) to the desired location. To delete a column, click the column heading,
click the Delete button arrow, and then click Delete Column at the drop-down list.
Data you enter in a table is automatically saved while changes to the layout of
a table are not automatically saved.
Adjust the width of a column (or selected columns) to accommodate the
longest entry by double-clicking the column boundary. You can also adjust the
width of a column by dragging the column boundary.
Print a table by clicking the File tab, clicking the Print tab, and then clicking
the Quick Print option. You can also preview a table before printing by clicking
the Print Preview option at the Print tab Backstage view.
32
Access Level 1
001-042-Access2010-L1-Ch01.indd 32
Unit 1
9/22/10 1:24:58 PM
With buttons and option on the Print Preview tab, you can change the page
size, orientation, and margins.
A data type defines the type of data Access will allow in the field. Assign a data
type to a field with buttons in the Add & Delete group in the Table Tools Fields
tab, by clicking an option from the column heading drop-down list, or with
options at the More button drop-down list.
Type a name, a caption, and a description for a column with options at the
Enter Field Properties dialog box.
Use options in the Quick Start category in the More Fields button drop-down
list to define a data type and assign a field name to a group of related fields.
Insert a default value in a column with the Default Value button and assign a
field size with the Field Size text box in the Properties group in the Table Tools
Fields tab.
Use the Data Type option box in the Formatting group to change the
AutoNumber data type for the first column in a table.
Commands Review
FEATURE
BUTTON, OPTION
File
Open
Close database
File
Close Database
New record
Home, Records
KEYBOARD
SHORTCUT
Ctrl + O
Ctrl + +
Next field
Tab
Previous field
Shift + Tab
Delete record
Home, Records
, Delete Record
Delete column
Home, Records
, Delete Column
File
Print Preview
File
File
Print, Print
Page size
File
Ctrl + P
File
Print, Print Preview,
File
Print, Print Preview,
Chapter 1
001-042-Access2010-L1-Ch01.indd 33
33
9/22/10 1:25:00 PM
FEATURE
Landscape orientation
File
Portrait orientation
File
Create table
Create, Tables
BUTTON, OPTION
KEYBOARD
SHORTCUT
34
_____________________
_____________________
_____________________
_____________________
_____________________
6. To add a new record, click the New button in this group in the
Home tab.
_____________________
7. At the Print tab Backstage view, click this option to send the
table directly to the printer.
_____________________
_____________________
Access Level 1
001-042-Access2010-L1-Ch01.indd 34
Unit 1
9/22/10 1:25:03 PM
_ _____________________
_ _____________________
11. Click this button in the Properties group in the Table Tools Fields
tab to display the Enter Field Properties dialog box.
_ _____________________
_ _____________________
_ _____________________
Skills Check
The database designer for Griffin Technologies has created the database diagram,
shown in Figure 1.15, to manage data about company employees. You will open
the Griffin database and maintain and create tables that follow the diagram.
Assessment
001-042-Access2010-L1-Ch01.indd 35
35
9/29/10 12:57:45 PM
Birthdate: 9/7/1976
AnnualSalary: $53,350
HireDate: 10/1/2005
Emp#: 1052
LastName: Reeves
FirstName: Carrie
Birthdate: 12/4/1978
AnnualSalary: $38,550
HireDate: 10/1/2008
1002: RD
1003: IT
1005: DP
1010: DP
1013: RD
1015: HR
1020: A
1023: IT
1030: PR
1033: A
1040: DP
1043: HR
1045: RD
1050: IT
1052: PR
1053: HR
1063: DP
1065: DP
1080: IT
1083: HR
1085: PR
1090: RD
1093: A
1095: RD
Assessment
36
Access Level 1
001-042-Access2010-L1-Ch01.indd 36
Unit 1
9/22/10 1:25:10 PM
Assessment
Chapter 1
001-042-Access2010-L1-Ch01.indd 37
37
9/22/10 1:25:10 PM
d. Apply the Yes/No data type to the third column, make the default value a
check mark (type a 1 at the Expression Builder dialog box), and provide the
description A check mark indicates the employee is signed up for the dental plan.
e. Apply the Currency data type to the fourth column.
f. Apply the Text data type to the fifth column and limit the field size to 8.
g. Type the data in each record as shown in Figure 1.17.
h. Automatically adjust the column widths.
i. Save the table and name it Benefits.
2. Display the table in Print Preview, change the top and left margins to 1.5
inches, and then print the table.
3. Close the Benefits table.
Assessment
38
Access Level 1
001-042-Access2010-L1-Ch01.indd 38
SORT DATA
1. With AL1-C1-Griffin.accdb open, open the Employees table.
2. Experiment with the buttons in the Sort & Filter group in the Home tab and
figure out how to sort columns of data in ascending and descending order.
3. Sort the records in the Employees table in ascending order by last name.
4. Save, print, and then close the Employees table.
5. Open the Benefits table and then sort the records in descending order by life
insurance amounts.
6. Save, print, and then close the Benefits table.
Unit 1
9/22/10 1:25:14 PM
Chapter 1
001-042-Access2010-L1-Ch01.indd 39
39
9/22/10 1:25:14 PM
Part
Limo#: 01
Description: 2008 White stretch
Limo#: 04
Description: 2009 Black minibus
Limo#: 08
Description: 2011 Black SUV stretch
40
Access Level 1
001-042-Access2010-L1-Ch01.indd 40
Limo#: 02
Description: 2008 Black stretch
Limo#: 06
Description: 2009 Black standard
Limo#: 10
Description: 2011 Black stretch
Unit 1
9/22/10 1:25:17 PM
Part
Part
With AL1-C1-Elite.accdb open, create the Drivers table shown in the database
diagram shown in Figure 1.19 and include an appropriate caption and description
for the fields and change the field size where appropriate. Type the following
records in the table:
Driver#: 101
LastName: Brennan
FirstName: Andrea
Address: 4438 Gowan Rd.
City: Las Vegas
State: NV
ZIP: 89115
Telephone: (702) 555-3481
Cellphone: (702) 555-1322
Driver#: 114
LastName: Gould
FirstName: Randall
Address: 330 Aura Ave.
City: Las Vegas
State: NV
ZIP: 89052
Telephone: (702) 555-1239
Cellphone: (702) 555-7474
Driver#: 120
LastName: Martinelli
FirstName: Albert
Address: 107 Cameo Dr.
City: Las Vegas
State: NV
ZIP: 89138
Telephone: (702) 555-0349
Cellphone: (702) 555-6649
Driver#: 125
LastName: Nunez
FirstName: Frank
Address: 4832 Helena St.
City: Las Vegas
State: NV
ZIP: 89129
Telephone: (702) 555-3748
Cellphone: (702) 555-2210
Cust#: 1002
LastName: Tsang
FirstName: Lee
Telephone: (702) 555-4775
Cellphone: (702) 555-42116
Cust#: 1028
LastName: Gabriel
FirstName: Nicholas
Telephone: (612) 555-7885
Cellphone: (612) 555-7230
Cust#: 1031
LastName: Marshall
FirstName: Patricia
Telephone: (702) 555-6410
Cellphone: (702) 555-0137
Cust#: 1010
LastName: Chavez
FirstName: Blake
Telephone: (206) 555-3774
Cellphone: (206) 555-3006
Cust#: 1044
LastName: Vanderhage
FirstName: Vernon
Telephone: (213) 555-8846
Cellphone: (213) 555-4635
Chapter 1
001-042-Access2010-L1-Ch01.indd 41
41
9/22/10 1:25:20 PM
With AL1-C1-Elite.accdb open, create the Bookings table shown in the database
diagram and include an appropriate caption and description for the fields and
change the field size where appropriate. Type the following records in the table:
Part
Booking#: (AutoNumber)
Cust#: 1044
Limo#: 02
Driver#: 114
BookingDate: 07/01/2012
Hours: 6
Booking#: (AutoNumber)
Cust#: 1001
Limo#: 10
Driver#: 120
BookingDate: 07/01/2012
Hours: 8
Booking#: (AutoNumber)
Cust#: 1002
Limo#: 04
Driver#: 101
BookingDate: 07/06/2012
Hours: 8
Booking#: (AutoNumber)
Cust#: 1028
Limo#: 02
Driver#: 125
BookingDate: 07/06/2012
Hours: 4
Booking#: (AutoNumber)
Cust#: 1010
Limo#: 06
Driver#: 125
BookingDate: 07/03/2012
Hours: 3
Booking#: (AutoNumber)
Cust#: 1031
Limo#: 08
Driver#: 120
BookingDate: 07/07/2012
Hours: 5
Automatically adjust the column widths of each table to accommodate the longest
entry in each column. Print each of the tables so all records fit on one page.
42
Access Level 1
001-042-Access2010-L1-Ch01.indd 42
Unit 1
9/22/10 1:25:20 PM