a skills approach access 2010 working with tables © 2012 the mcgraw-hill companies, inc. all rights...

47
A Skills Approach Access Access 2010 2010 Working with Tables Working with Tables © 2012 The McGraw-Hill Companies, Inc. All rights reserved Chapter 2

Upload: britton-fisher

Post on 13-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

PowerPoint PresentationChapter 2
A Skills Approach
*
2.2 Adding Fields to Tables in Datasheet View
2.3 Adding a Lookup Field from Another Table in Datasheet View
2.4 Adjusting Column Widths in Datasheet View
2.5 Changing Data Type in Datasheet View
2.6 Adding a Total Row
2.7 Using Attachment Fields
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
2.10 Setting the Primary Key
2.11 Adding and Deleting Fields in Design View
2.12 Modifying Field Properties in Design View
2.13 Adding a Lookup Field from a List in Design View
2.14 Modifying Lookup Field Properties
2.15 Modifying Table Properties
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
In a relational database, tables are related by common fields.
Information about each department is stored only in the Departments table; it is not repeated in the Employees table.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
The first field is an AutoNumber field.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
Skill 2.1
Enter data in each field; Access sets a data type based on the data. The fields are named Field1, Field2, and so on.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
Skill 2.1
Click anywhere in a field to rename it. A caption, if you supply one, displays instead of the name.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
Skill 2.2
The Click to Add command is the rightmost column in a table. Click it and choose a data type.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
Skill 2.2
You can add a field to a table from the Table Tools Fields tab.
The last section in the gallery, Quick Start, inserts a related group of fields.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
You can choose from many data types for a field.
Adding Field to Tables in Datasheet View
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
Adding a Lookup Field from Another Table in Datasheet View
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
Skill 2.3
A Lookup field allows the user to select data from a list.
The list can be from another table or query; you can also key a lookup list.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
Skill 2.3
Use the Lookup & Relationship data type to start the Lookup Wizard.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
*
You can drag column borders or use the dialog box.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
Skill 2.5
You can select a different data type after data is entered.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
Skill 2.6
A Total row uses an aggregate function to display summary values for a field.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
*
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
Skill 2.7
An attachment might be an image, a Word document, an Excel workbook, a video clip, or other similar data.
An attachment field cannot be renamed.
The attachment itself is not visible in Datasheet view. It is shown as a paperclip icon.
Attachments are limited to 256 MB.
You cannot attach program files (.exe or .bat)
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
Skill 2.7
Double-click the field in the table to open the Attachments dialog box.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
Skill 2.8
The Table Tools Fields tab includes properties, formatting, and field validation settings.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
Skill 2.9
To create a table in Design view, name each field, choose the data type, enter an optional description, and set options in the Field Properties pane.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
*
Skill 2.10
The primary key is a field that contains unique data in each record.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
*
*
Skill 2.10
This primary key uses a client’s first and last names as unique identifiers.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
Skill 2.11
You can add a field by inserting a row or by using the first blank row.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
Click the Row Selector to choose a field for deletion.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
Skill 2.12
Field properties include a field size or how data is formatted.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
An Input Mask shows a user how to enter data.
The Allow Zero Length property indicates that a field may be left blank.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
Data can be stored without the symbols to save space.
Use the Input Mask Wizard to build a mask.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
Here is the Input Mask in Design View.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
in Design View
*
Skill 2.13
A Lookup field can be created in Datasheet or Design View.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
in Design View
*
Skill 2.13
Set the Data Type in Design View to start the Lookup Wizard.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
in Design View
*
*
*
Set how many columns are displayed
Control how users interact with the list
A lookup field can be modified. You can:
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
Skill 2.14
There is a Modify Lookups button on the Fields tab in Datasheet View. The button opens the Lookup Wizard.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
Skill 2.14
The Lookup tab in the Field Properties pane in Design view lists the options that can be modified.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
Skill 2.15
The table Property Sheet opens on the right in Design View.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
*
*
Skill 2.16
Right-click a table name in the Navigation Pane to delete it from the database.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
The command to delete a database object cannot be undone.
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
© 2012 The McGraw-Hill Companies, Inc. All rights reserved
*
*
Adding a Total row
Modifying table properties
*