1. Creating a Database
Transcript of 1. Creating a Database
-
8/8/2019 1. Creating a Database
1/29
Creating a Database
-
8/8/2019 1. Creating a Database
2/29
XP
Objectivesy Define the terms field, record, table, relational
database, primary key, and foreign key
y
Create a blank databasey Identify the components of the Microsoft Access
window
y Create and save a table in Datasheet view
y
Enter field names and records in a table datasheety Open a table using the Navigation Pane
2
-
8/8/2019 1. Creating a Database
3/29
XP
Objectivesy Open an Access database
y Copy and paste records from another Access
databasey Navigate a table datasheet
y Create and navigate a simple query
y Create and navigate a simple form
y Create, preview, navigate, and print a simple reporty Learn how to manage a database by compacting,
backing up, and restoring a database
3
-
8/8/2019 1. Creating a Database
4/29
XP
Organizing Datay Your first step in organizing data is to identify the
individual fields
yThe specific value, or content, of a field is called thefield value
y A set of field values is called a record
y Next, you group related fields together into tables
4
-
8/8/2019 1. Creating a Database
5/29
XP
Databases and Relationshipsy A collection of related tables is called a database, or arelational database
y You connect the records in the separate tables througha common field
y Aprimarykeyis a field, or a collection of fields,whose values uniquely identify each record in a table
yWhen you include the primary key from one table as afield in a second table to form a relationship betweenthe two tables, it is called a foreign keyin the secondtable
5
-
8/8/2019 1. Creating a Database
6/29
XP
Databases and Relationships
6
-
8/8/2019 1. Creating a Database
7/29
-
8/8/2019 1. Creating a Database
8/29
XP
Exploring the Microsoft Access Window
8
-
8/8/2019 1. Creating a Database
9/29
XP
Creating a Table in Datasheet Viewy Click the Create tab on the Ribbon
y In the Tables group, click the Table button
y Accept the default ID primary key field with theAutoNumber data type, or rename the field andchange its data type, if necessary
y Double-click the Add New Field column heading, and
then type the name for the field you are adding to thetable
y Press the Tab key or the Enter key
9
-
8/8/2019 1. Creating a Database
10/29
XP
Creating a Table in Datasheet Viewy Add all the fields to your table by typing the field
names in the column headings and pressing the Tabkey or the Enter key to move to the next column
yIn the first row below the field names, enter thevalue for each field in the first record, pressing theTab key or the Enter key to move from field to field
y After entering the value for the last field in the firstrecord, press the Tab key or the Enter key to move tothe next row, and then enter the values for the nextrecord. Continue this process until you have enteredall the records for the table
y Click the Save button on the Quick Access Toolbar,enter a name for the table, and then click the OKbutton
10
-
8/8/2019 1. Creating a Database
11/29
XP
Creating a Table in Datasheet View
11
-
8/8/2019 1. Creating a Database
12/29
XP
Entering Records
12
-
8/8/2019 1. Creating a Database
13/29
XP
Saving a Tabley Click the Save button on the Quick AccessToolbar.The Save As dialog box opens
yIn the Table Name text box, type the name for thetable
y Click the OK button
13
-
8/8/2019 1. Creating a Database
14/29
XP
Opening a Databasey Start Access and display the Getting Started with
Microsoft Office Access page
yClick the More option to display the Open dialog box
y Navigate to the database file you want to open, andthen click the file
y Click the Open button
14
-
8/8/2019 1. Creating a Database
15/29
-
8/8/2019 1. Creating a Database
16/29
XP
Navigating a Datasheety The navigation buttons provide another way to move
vertically through the records
16
-
8/8/2019 1. Creating a Database
17/29
XP
Creating a Simple Queryy Aqueryis a question you ask about the data stored in
a database
yThe Simple QueryWizard allows you to selectrecords and fields quickly
17
-
8/8/2019 1. Creating a Database
18/29
XP
Creating a Simple Query
18
-
8/8/2019 1. Creating a Database
19/29
XP
Creating a Simple Formy Aform is an object you use to enter, edit, and view
records in a database
yYou can design your own forms, use the FormWizard,or use the Form tool to create a simple form with onemouse click
19
-
8/8/2019 1. Creating a Database
20/29
XP
Creating a Simple Form
20
-
8/8/2019 1. Creating a Database
21/29
XP
Creating a Simple Reporty Areportis a formatted printout (or screen display) of
the contents of one or more tables in a database
yTheReporttool places all the fields from a selectedtable (or query) on a report, making it the quickestway to create a report
21
-
8/8/2019 1. Creating a Database
22/29
XP
Creating a Simple Report
22
-
8/8/2019 1. Creating a Database
23/29
XP
Creating a Simple Report
23
-
8/8/2019 1. Creating a Database
24/29
XP
Creating a Simple Report
24
-
8/8/2019 1. Creating a Database
25/29
XP
Printing a Reporty Open the report in any view, or select the report in the
Navigation Pane
y To print the report with the default print settings, clickthe Office Button, point to Print, and then click QuickPrint
or
y To display the Print dialog box and select the options
you want for printing the report, click the OfficeButton, point to Print, and then click Print (or, if thereport is displayed in Print Preview, click the Printbutton in the Print group on the Print Preview tab)
25
-
8/8/2019 1. Creating a Database
26/29
XP
Viewing Objects in the Navigation Pane
26
-
8/8/2019 1. Creating a Database
27/29
XP
Compacting and Repairing a Databasey Compacting a database rearranges the data and
objects in a database to decrease its file size
27
-
8/8/2019 1. Creating a Database
28/29
XP
Compacting and Repairing a Databasey Make sure the database file you want to compact and
repair is open
y
Click the Office Button, point to Manage, and thenclick Compact and Repair Database
28
-
8/8/2019 1. Creating a Database
29/29
XP
Backing Up and Restoring a Databasey Backing upa database is the process of making a copy
of the database file to protect your database againstloss or damage
y The Back Up Database command enables you to backup your database file from within the Access program,while you are working on your database
y To restore a backup database file, you simply copy the
backup from the drive on which it is stored to yourhard drive
29