3introduction To Ms Access: Knowledge
3introduction To Ms Access: Knowledge
Lesson
o Get knowledge about database and DBMS
objectives o Create knowledge about table, record and field
o
Leam how to create database in MS Access
File is a collection of data. School registers, Office records and Mark lists are examples of
files. It may be organised in paper documents and stored in racks or shelves. This manually kept
data takes more space and more time to search an information. The main disadvantage of these
are loss of data, lack of security and take more work to
arrange thesefilles.
Now a days the files are stored, operated and maintained in a computer. They are stored as
Cred n a tabular format across rows and coiumns.Compared to a manual database. a computerised
Calabase iS more flexible, compact and faster. It reduces the probability of inconSistent data. wnen a
i s e isCIeated on a computer, many ofthe problems with amanual database can be eliminated
Advantages of DBMS
Improved Data Access: Using DBMS, data is stored in a centralised location and allows
sharing according to the requirement of data
users. It can find
from among thousands of a
specific record or intom-
entries within a second.
stored in aroom full can be Using DBMS, the database records man
stored in a pen drive.
For
example, the information of students
stored in a
teacher, principal and even computer can be acçessed by a
parents from different locations.
Avoid Data Redundancy: Using
DBMS, data are stored in a central
maintain multiple place and does not re
copies. In a manual
multiple copies. The system, if you are updating data,
duplication you need U
of these.data is known as
Data
consistency: DBMS ensures data Dataredundancy.
there is no consistency by storing data at one
duplication of data. In the manual place and eis
chance for system, if you are
mismatching copies of data. updating a data, ue re is
Data
Security: One of the important
users only can access data. advantage of DBMS is data
Here you can security. In DBMS, tne autha
different users by decide the limited
using password access and unlimited acce
28 protection. a
MSAccess
MS Access is one of the database management software available with MS Office. It isa
nalational Database Management System(RDBMS). MS Access allows you to manage all your
aformation in a single database file. Ihe data in MS Access is stored in different tables.
MS Access 2010
Starting with
To start MS Access 2010, click on the Start button and place the mouse pointer on All
Denatams. Then point to Microsoft Office and select Microsoft Office Access 2010from the list.
Another method is to double click on the MS Access shortcut icon on the desktop.
2Mcrosoft Publishas2010
SMcroiet SherePoint Workupace 01
GMcrosot Ofice PowerPoint 2007 WMcrovohWord 2010
Mcrovohn ofice 2010 Toos
WinRAR Mikrosoft Ofice Tooh
A Pregrame
Microsoft Access2010
Starting MS Access
When you open MS Access, you can see Microsoft Access window as shown below.
ww.o
Icon of MS Access
2010
step Clickon 'Blank Database' in the 'New' option fronmthe file menu on the MSAccee..
Windo
step Type a database name on the text box of 'File Name' located on right side of the
wind
epClick on Create button as shown in figure:3.1.
Mm Ce tdenw DetDeeaseToes
Avzlable Tempisies Ba datab m C t **Detee Tean
Hme AB12
er Fi
e
m 1emples
Rec
Name of Database
Database
browse
Database option
creation
button
Query: A made
up of a number of fields.
Query is used to extract
information from the database.
datafrom one or more tables They let you find and wO kon
Forms: Forms
provide an interface that
according to the specified
lets the user
conditions.
Report: Reports are used view, enter and
information stored in a change data in the ld
to display the
database for printing pur ses
MS Access
Tables in
Tables are used to store data in a database. A database can have one or more tables.
l e is made up of rows and columns. An example for a table is shown in figure:3.3).
table
Components of a
field has a
Field: The columns in a table are known as fields. It is a named unit of information. Every
for field.
data type that determines the type of values that is stored in it. Fig: 3.4 shows example
an
Record: The rows in a table are known as Record. A record stores complete information about an
Figure: 3.5
Amerts
Save As
aPakinta slaee
New) Table Beme
Table
Text Text data type allows you to store alphanumeric letters (Letters andnumbers)in
Number Number data type is used for entering numeric data. Some examples are Ph
number, PIN code etc.
Currency: Currency data type allows you to enter data related with currency.
Date/Time: Date/Time data type is used to enter date/time. You can select different dateiTi
formats from its property.
AutoNumber AutoNumber data
type store integers that are incremented automatically wne
newrecord is added to the table.
Yes/No: Yes/No data type can store only Yes or Novalues.
Example True or False.
Creating a table using Design View
Design View displays
the view that allows
you to enter field names, data types a
descriptions into your table. Let's
see the
Details in working of Design View by creating a tabie
MS Access as shown in
Field Neme
figure:3.7.
Si:NO Type
Number
1Coumtry-Detols
Country Text SENO Coutry Capital
Capitsl 1 india ndependence Day Yeer oftndependenc
Text New Delhi
August 15
ndependance Day Text
2 America
Yeer of independence
Washington uty4
3 Pakistan
Number Islamabad AUgUst 1a
4 Japan
Tokyo
Figure 3.6 March 1 11
32 Figure 3.7
Tocreate Country-Details using DesignView,followthese steps:
0 s t e p
Click on Table Design option on the Tables group in the Create tab
Enter the Field names (figure:3.6) in the Field Name column and press tab key to move
step
cursor to the next column and select appropriate data type from the drop down list.
Click Save button in the Quick Access Toolbarto save the table.
0step
Aenng
ity n i e Som adve contenM nas Been d@hsed (ha for mere okes s i e Coeen
Feld Nerne
ataType
umber
country D
Tebi
Country Save As
Text
Table N
Indecendence Dey County-Dets
Numbe
Figure 3.8
Figure 3.11
Figure 3.9
button
Country-Details, click on View
country details in the table
To enter
as shown in figure
View
Content
been dispbied Cick for morg drdals ie
Sose adiw condent has
Secuity Wanng
ndependence Day Year of independence
AR ACcess Objects apital 1947
SINO Auu
Sertn vew Dein
ai
Washinro Juya
Ceunty-Detals
Ameica
August 4
1947
Tabiel
Pakistan islamabeo Primary
1919
March 1 Ky
Tokyo
Figure 3.13
Figure 3.12
Primary key
value for each record Fied Nama
A
Primary Key is a field which has a unique covny
or can't be left
have repetitive value
ndapgndence Day
OStep
3.13)on lools group in the
key button (Figure:
Click on Primary
e once again.
appeared, click View button
Primary key button is not (Figure: 3.14), Hero
for the field Si:No e
Now the Primary key is assigned you Ce
the selected field.
picture of a key on the beginning of
Add a New Record
follow these steps:
To add a new record in the table Country-Details,
Here you can add a new field Currency in the table Canade ttawe
Country-Details. ind
0step Right click the field Independence Day. Figure 3.16 Deete h e
tab.
Otiep
0step
Click on drop down arrow of Delete button on the Record group in the Home
Select Delete Column option from the drop downlist as shown in figure: 3.18.
step
step
arrow of elete
select the record and click on the drop down
Similarly, to delete a record,
in figure: 3.19.
utton. Then select Delete Record option from the dropdownlist as shown
aRepiace aubri D e t a
ew Z Totals
Totals 2 Ascending
nding Seiection
New
*
33ve perg
Go To B
scendng Advanced
Savt Speiling A Descending Advance d
ggie trAll Delete More
YFind Selet
Select A 2 EJ 7
Refiesh A Deiete
Delete More
More
r Al Sort & Fiiter Peiete
X Reiete
Sort & Delete Becord
Deiete Becord Country Details Independence Day Yearof independence
Detals Sl:No Country Capital 1947
COuniy Capital DeleteColun 1 india ew Deihi
August 1
Figure 3 119
Figure 3.18
00
Lesson Summary
collection of information.
A database is a data management system
is a computerised
Database Management System(DBMS)