Databases and Database Objects: An Introduction

advertisement
Microsoft
Access 2010
Chapter 1
Databases and Database
Objects: An Introduction
Objectives
• Design a database to satisfy a collection of
requirements
• Describe the features of the Access window
• Create a database
• Create tables in Datasheet and Design views
• Add records to a table
Databases and Database Objects: An Introduction
2
Objectives
•
•
•
•
•
•
•
Close a database
Open a database
Print the contents of a table
Create and use a query
Create and use a form
Create and print custom reports
Modify a report in Layout view
Databases and Database Objects: An Introduction
3
Creating a folder
• Go to your home directory
• Create a subdirectory called Access
• Change to the Access folder and create another
folder called Chapter1
• You will save all your work to this directory.
• Also, all the files you will need are on
\\ciscoserver\Public\Db Design
• SAVE FREQUENTLY!!! Just a warning!
Databases and Database Objects: An Introduction
4
Project – Database Creation
Databases and Database Objects: An Introduction
5
General Project Guidelines – pg. 5
•
•
•
•
•
•
•
•
•
Identify the tables
Determine the primary keys
Determine the additional fields
Determine relationships between the tables
Determine data types for the fields
Identify and remove any unwanted redundancy
Determine a storage location for the database
Determine additional properties for fields
Determine the best method for distributing the
database objects
Databases and Database Objects: An Introduction
6
Overview –pg. 6-7
• Design database – maintains information on both
clients and business analysts.
• Look at the data on pg. 6-7
• Clients – address data & financial data
• Business analysts – address data, financial data
• Go thru pg. 8-12
Databases and Database Objects: An Introduction
7
Creating a Database
• Ensure the New tab is selected and that Blank database is selected in
the New gallery
• Click the Browse button in the right pane of the New gallery to
display the File New Database dialog box
• Type the desired file name (Camashaly Design) in the File New
Database dialog box to change the file name. Do not press the ENTER
key after typing the file name
• Navigate to the desired save location
(H:\username\Access\Chapter1)
• Click the Create button in the right pane to create the database on
the selected drive with the entered file name
Databases and Database Objects: An Introduction
8
Creating a Database
Databases and Database Objects: An Introduction
9
• Datasheet view- table is presented in rows and
columns, similar to a spreadsheet – used to add
or update records
• Design View – used to create a table or modify
the structure of a table
Databases and Database Objects: An Introduction
10
Modifying the Primary Key - Do pages
17-20 then stop!
Databases and Database Objects: An Introduction
11
Making structure changes to a table
• Undo – will undo last change
• You can delete a field, change the name of a field,
insert a field or move a field…
• See instructions on pg. 20
Databases and Database Objects: An Introduction
12
Saving a Table
• Click the Save button on the Quick Access Toolbar
to display the Save As dialog box
• Type Business Analyst Table
• Click the OK button (Save As dialog box) to save
the table
Databases and Database Objects: An Introduction
13
Viewing the Table in Design View
• Click the View button arrow to toggle between
Design and Datasheet view.
Databases and Database Objects: An Introduction
14
Closing the Table
• Click the Close button for the open table to close
the table
Databases and Database Objects: An Introduction
15
Adding Records to a Table
Do pages 23-26 to populate and then close the table.
Now Quit Access and restart it and open Your database!
Databases and Database Objects: An Introduction
16
Resizing Columns in a Datasheet
Do pages 28-30
Databases and Database Objects: An Introduction
17
Previewing and Printing the Contents
of a Table
• Look at pg 31-32 to preview and print the table
• DO NOT ACTUALLY PRINT IT… just observe How!
Databases and Database Objects: An Introduction
18
Creating a Table in Design View
• Now you are going to create the Client table by
following the instructions on pg. 33-37
• Pay attention to Table 1-5 on pg. 33 for the
structure of this table.
• If you make a mistake… there are ways to correct
it. Check out some of the ways on pg. 37
Databases and Database Objects: An Introduction
19
Importing an Excel Worksheet
• It is VITAL that the structure is correct before you
do this!
• Once the Client table is structurally sound…you
can import the data from Excel..pg 39-42
• Show me these tables once all of this is complete
Databases and Database Objects: An Introduction
20
Using the Simple Query Wizard
to Create a Query
• Do pages 43-45 to create a sample query.
Databases and Database Objects: An Introduction
21
Using Queries – pg. 45
• See the notes on this page… we will discuss.
Databases and Database Objects: An Introduction
22
Using a Criterion in a Query
Do pages 46-47.
Databases and Database Objects: An Introduction
23
Creating a Form
Do pages 4850 to create a
form for your
database.
Databases and Database Objects: An Introduction
24
Creating a Report
Look at the example on pg 51. Now, do page 52-57
Databases and Database Objects: An Introduction
25
Changing Database Properties
• These properties are known as metadata. Many
of these are updated automatically.
• Some you have to do manually.
• Do pgs. 59-60
Databases and Database Objects: An Introduction
26
Changing Database Properties
Databases and Database Objects: An Introduction
27
Backing Up a Database
• Pg. 61 Walk thru this
Databases and Database Objects: An Introduction
28
Compacting and Repairing a Database
• Pg. 61 instructions
Databases and Database Objects: An Introduction
29
Additional Operations – pg. 62
•
•
•
•
•
Opening another database
Closing a database without exiting Access
Saving a database with another name
Deleting a table or other object in the database
Renaming an object in the database
Databases and Database Objects: An Introduction
30
Now – what shall we do?
• Homework
– Most of your homework will
be done online
– Go to scsite.com/ac2010
– From there choose to do
the Practice Test…you can
take it as many times as you
want…
– Print out the results and
bring them to class NEXT
class meeting.
Databases and Database Objects: An Introduction
• Labs
– In the Lab – Lab 3 – Creating
Philamar Training Database,
pg. 70-71
– Cases and Places - #1,
Advertising Database, pg.
72.
– Remember, all the data files
you need are on Public\Db
Design
31
Download