Open A Database: Choose Open To Browse For A File or Choose A Database From The Recent Documents List
Open A Database: Choose Open To Browse For A File or Choose A Database From The Recent Documents List
Choose Open to browse for a file or choose a database from the Recent Documents list
Copyright 2008 Pearson Prentice Hall. All rights reserved. 11
Open a Database
Choose a database from the Open Recent Database List or click More to browse for other databases 22 Copyright 2008 Pearson Prentice
Hall. All rights reserved.
Database Terminology
n n n n
Individual fields
Individual tables in a database Recor ds Copyright 2008 Pearson Prentice Hall. All rights reserved. 33
Objects
n n n n n n
44
Datasheet View used to add, modify, delete and view records Design View used to create and modify the fields in Copyright 2008 Pearson Prentice a table 55
Hall. All rights reserved.
Datasheet View
Primary key field
Navigation bar
Navigation buttons
Scroll bar
Design View
n
77
Set field size in the Field Properties grid of Table Design View
n n
Set the field size in Table Design View Always anticipate the current field size may one day need to be larger
Copyright 2008 Pearson Prentice Hall. All rights reserved. 88
n n
Used to avoid data entry errors by restricting what can be entered Validation text can be used to provide an explanation of the type of data that is allowed in a field
Copyright 2008 Pearson Prentice Hall. All rights reserved. 99
Protects the general public and companies shareholders against fraudulent practices and accounting errors.
q
Requires that all business records be saved for a period of five years and be made available to the SEC upon request
1010
SOX RECORDS
Discard Do Not
n n
Short for personal, non-public, information PNPI laws govern the safeguarding of data such as: q social security numbers q credit card numbers q bank account numbers q medical records
Copyright 2008 Pearson Prentice Hall. All rights reserved. 1111
For greater flexibility, store data in its smallest part q Instead of one field for an address, use many q Instead of one field for a name, two or three
Copyright 2008 Pearson Prentice Hall. All rights reserved. 1212
1313
Using a data type of date/time for all date fields allows the use of date arithmetic
Copyright 2008 Pearson Prentice Hall. All rights reserved. 1414
Enter field names, data types and descriptions in Table Design View
Begin with a template Copyright 2008 Pearson Prentice Hall. All rights reserved.
1616
n n
Click the application from which to import or Choose the type of file you wish to import
Copyright 2008 Pearson Prentice Hall. All rights reserved. 1717
After choosing your method of creation begin implementing the table design
q q q q
Use CamelCase notation for field names Specify data types Establish a primary key Consider the need for a foreign key
Copyright 2008 Pearson Prentice Hall. All rights reserved. 1818
n n
Tables are automatically created with an AutoNumber field which serves as the primary key To change the primary key
q q
2020
n n
Select the Excel file you would like to import Select how you would like to import the data
q q q
Appended added to the end of an existing table New table creates a new table in a database Linked create a new table that is linked to the source file in Excel
Copyright 2008 Pearson Prentice Hall. All rights reserved. 2121
Rep ort
Que ry
For m
Forms, queries, and reports are all based upon data contained in a table
Copyright 2008 Pearson Prentice Hall. All rights reserved. 2222
Forms
For m First record from table visible in form Underlying table
Forms allow us to create an interface that can be more user friendly and attractive than Datasheet View
Copyright 2008 Pearson Prentice Hall. All rights reserved. 2323
Queries
Criterion restricting dataset to show records that have a job title of Sale Representative
Queries allow us to question data The answer to the query is a dataset The question asked is formed using criteria the rules or norm that is the basis for making judgments
Copyright 2008 Pearson Prentice Hall. All rights reserved. 2424
This means you can have multiple tables and create relationships between each table This helps eliminate redundant data
Copyright 2008 Pearson Prentice Hall. All rights reserved. 2525
n n
Assures that the references to relationships between data is accurate Established when creating the relationship between two tables
Copyright 2008 Pearson Prentice Hall. All rights reserved. 2626
When active, data changed in one table that is in a relationship will be changed in its related tables Can be set when establishing relationships between tables
Copyright 2008 Pearson Prentice Hall. All rights reserved. 2727
Establishing Relationships
Relationships icon Click and drag to create a relationship
n n
Click the Database tools and click the Relationships icon In the Relationship window, click and drag a field name from one table to a field name in a related table
Copyright 2008 Pearson Prentice Hall. All rights reserved. 2828
Establishing Relationships
Enter the appropriate settings in the Edit relationships dialog box and click Create A join line will appear when one table is joined to another
Copyright 2008 Pearson Prentice Hall. All rights reserved. 2929
Save As saves only the current object, not the entire database
3030
Backing-up a Database
Default filename of a backup file is the name of the database and the current date
Backing-up an Access file will produce a copy of your file with a default filename
Copyright 2008 Pearson Prentice Hall. All rights reserved. 3131
Should be performed everyday Often decreases the file size by 50% or more
Copyright 2008 Pearson Prentice Hall. All rights reserved. 3232