Ms. Access Database Handouts
Ms. Access Database Handouts
An Introductory To
Database Management System - (DBMS)
Using MS Access
1
What is the Data?
2
What is the Information?
3
Information is created from data
Processing
(SIS)
Information
(1910191 - Ali – ENG)
4
Database
• A tool for collecting and ORGANizinginformation.
• Store/save information about people, products,
orders, etc.
• Start as a list in a word-processing/spreadsheet.
Data becomes hard to understand when the list
• grows bigger.
• Limitation will occur when searching or pulling
• subsets of data
• Then the needs of (DBMS) becomesessential.
5
Basic Database concepts
Field (Column):
• Record (Row):
a collection of related fields (data). A number of pieces of
information that relate to the same object. For example: If
you keep records on UoB students, you might
6
Basic Database concepts
7
Basic Database concepts
• Table:
a collection of related records. If you put all the student records
together, you may have a table of students. FINT003 –Sec 08
• Database:
a collection of tables (objects). If you were keeping the
university records, you might have a table for students, a table
for results, and another for attendance records. All thesetables
would be combined as a database.
8
Basic Database concepts
9
Database Management Components
⚫ Hardware
⚫ Software
⚫ Data
⚫ User-end, and
⚫ Administrator/ Developer
10
Database Management Applications (DBMA)
11
Database Management Objects
Database objects are the physical parts of the database. A database
management system consists of many objects but the major one are:
⚫ Table
⚫ Query
⚫ Form
⚫ Report
12
Table
⚫ Basic element of a database
⚫ Is a collection of related data held in a structured
⚫ Consists of fields (columns), and records (rows)
⚫ DBM must have at least one
⚫ In case of more than one table we should havea relationship
(interconnection) between all tables
⚫ To work together and to maintain the consistencyof the database
13
Query
⚫ Query like a table in structure but it will be driven from a table or
another query along with all its data
⚫A query refers to the action of instructing to the database to return
some/all of the data
⚫ You are asking "querying" the database for some data that matches a
given criteria.
⚫ Later the created query can be used as a record source for a query, a
form/ or a report object.
14
Query (cons)
⚫ An example of created query with ms access:
15
Form
⚫ Sometimes referred to as "data entry screen”.
⚫ Actsasaninterface,that helpsyouto work with your data.
⚫They often contain command buttons (control tools) that
perform various commands.
16
Form (cons)
⚫ An example of created form using ms access:
17
Report
⚫ Adatabasereport presentsinformationfrom adatabase.
⚫ Information is displayedsimplyand efficiently.
⚫ Reports can be printedfrom the database to view information
quickly and easily.
18
Report (cons)
⚫ An example of created report suing ms access:
19
MS Access
⚫ Relational Database Management System (RDBMS)
20
Access Database Files
⚫ You can use Access to manage all of your information in
one file. Within an Access database file, you can use:
⚫ Tables to store your data.
⚫ Queries to find and retrieve just the data that you want.
⚫ Forms to view, add, and update data in tables.
⚫ Reports to analyze or print data in a specific layout.
21
MS Access Screen’s elements
22
Start your Program
⚫ All Programs -> MS Office -> MSAccess
23
Creating & Saving a New Database
⚫ Click on create
⚫Automatically a new table will be created in a
datasheet view
24
Creating a Table
26
Creating a Table
From this view you can enter field name as
well as data field:
27
Creating a Table
At any time you can follow the following steps to
get a new table
⚫ Create -> Tables Group -> Table
⚫ If you want to design the table according to your
needs, then you can switch to the design view:
28
Creating a Table
⚫ An example of a table in design view:
29
Creating a Table
⚫Following table explain the proper‘s use of
data types within the database table:
30
Data Type
Number Used for storing any type of number Serial Number, Marks
Date/ Time Used for storing ordinary date/ time Data of Birth
Saving aTable
⚫ You cansave your table by giving a meaningful
name, so that it can be easily refer to and recognize.
32
Deleting a Record
When a record of data is no longer needed it is better to
be deleted from the database by following the steps.
33
Formatting data in a table
⚫ Like any other MS application you can format your
data inside a table by adding:
⚫ Font, Size, Color, Alignment, etc…
34
Closing & Openinga table
⚫ Closing a table or any object simply by click on close
button, and opening a table or any object simply from
the left side pane double click that object name.
35
Creating a Query
There are several wayscreating a query, but the simplest
one is to create a query using QueryWizard tool.
a. Create -> Other Group -> QueryWizard
b. Select Simple QueryWizard
36
Creating a Query (cons)
c. Click Ok
d. Select the base-object (Table/another Query)
37
Creating a Query (cons)
e. Select the field names
f. Click Next
g. Select Detail option
38
Creating a Query (cons)
h. Click Next
i. Supply a meaningful query name.
j. Click Finish
39
Modifying a Query Structure
There are many ways to accomplish this task, the easiest one
from left side pane:
⚫ Right click on a query name
⚫ Select Design View
⚫ Sort data field (Ascending/ Descending)
⚫ Remove/ Keep the tick (√) to hide/ unhide that field
⚫ Display a data field with special criteria
40
Forms
⚫ It is data entry screens.
⚫ it is an interfaces you can use it to work with data
⚫They often contain command buttons (control
tools) that perform various commands.
41
Forms (cons)
Creating a new form:
⚫ Create -> More Forms -> FormWizard
42
Forms (cons)
⚫ Select the source record from (Tables/ Queries) list
⚫ Move the desired fields from available pane to the
selected pane.
⚫ Click on Next
⚫ Select the form layout design
43
Forms (cons)
⚫ Click on Next
44
Forms (cons)
⚫ Select the style design
⚫ Click on Next
45
Forms (cons)
⚫ Write the form name
⚫ Click Finish
46
Change Forms Design
⚫ Add a title
⚫ Add date / time
⚫ Add a picture
⚫ Add a control button
⚫ Arrange the fields layout
47
Report Object
⚫ The main purpose of the database
⚫ Displayingthe information simplyandefficiently
⚫Helpsan organization in betterdecisionmaking,moreproductivity,
highperformance.
⚫ Pullsthe information outside from the databasetable
48
Creating a new Report
⚫ Create > Reports > ReportWizard
49
Creating a new Report
⚫ Select the source record from (Tables/ Queries) list
⚫Move the desired fields from available pane to the
selected pane
⚫ Select the grouping field
50
Creating a new Report
⚫ Select the sorting methods of your records
51
Creating a new Report
⚫ Select your report layout ( page layout &orientation)
52
Creating a new Report
⚫ Write the report name
53
Report Design View Elements
⚫ Report Header
⚫ Page Header
⚫ Detail
⚫ Page Footer
⚫ Report Footer
⚫ Property Sheet
54
References
• https://support.office.com/enus/article/Database-basics-
a849ac1607c7-4a31-99483c8c94a7c204?ui=en-
US&rs=enUS&ad=US# toc257378512
codex.cs.yale.edu/avi/db-book/db4/slide-dir/ch1-2.pdf.
• https://quizlet.com/8361538/access-chapter-1-flash-
cards/
• http://www.gcflearnfree.org/access2016/
55