Académique Documents
Professionnel Documents
Culture Documents
CCP305.23 1
Objectives
On completion of this period, you would
be able to
Create a database
Create a Table and
Set Primary Key
CCP305.23 2
Recap
Ms Access has 7 types of Components in each
database. They are
Tables
Queries
Reports
Forms
Pages
Macros
Modules
CCP305.23 3
Starting Ms Access
Click on “Start”
button.
Select “Programs”
Option from “Start”
Menu
Select “Microsoft
Access” from
Programs Menu
CCP305.23
Fig:1 4
Ms Access window will be as follows
CCP305.23 6
Creating a Database
Click on OK
button
Fig:3
CCP305.23 7
Creating a Database
Click on
“Create” button
CCP305.23 Fig:4 8
Creating a Database
The new
database will be
created
Database
window will be
displayed As
shown in fig:5
CCP305.23 Fig:5 9
Creating a Table
Select “Table”
Object
Select “Create
table in Design
View”
Click on “New”
Fig:6
CCP305.23 10
Creating a Table continue….
Select the
required Method
Click on OK
CCP305.23 Fig:7 11
Creating a Table Data sheet view
Fig:8
CCP305.23 12
Creating a Table in Design view
CCP305.23 13
Creating a Table Design views contd..
Table Name Data types
Menu
Enter:
Field names
Data type
Description
Field properties
Fig:10
Field Properties Pane CCP305.23 14
Creating a Table Saving
Click on OK
button
The created
table will be as in
figure:12
CCP305.23
Fig:11 15
Creating a Table contd…
CCP305.23 17
Definition of Primary Key
CCP305.23 18
Primary Key continued…
It is must
Relationship between tables in the database
Numeric or Counter field
For Fast accessing of records
For sorting the records
CCP305.23 19
Setting or Changing the Primary Key
Select ‘table’
name in data base
screen
Click ‘Design’ to
go to design view
Fig:13
CCP305.23 20
Setting or Changing the Primary Key
CCP305.23 22
Summary continue:
Creating a Database
New data base can be created in different
methods
Fields name, files type, properties can be
defined
Primary Key can be Set to a tables
CCP305.23 23
Quiz
1. Once primary key is set, if cannot be
changed .(true / false) false
2. Table can be created in ____.D
c) Data sheet view
d) Design views
e) Using Wizard
f) All of the above
CCP305.23 24
Assignment
1.Create a new Database and give name as “
Employee”.
2.Create the following Tables :
Table 1- Table Name: Salary
CCP305.23 25
Frequently asked Questions
CCP305.23 26