Download as ppt, pdf, or txt
Download as ppt, pdf, or txt
You are on page 1of 21

Components of Access Database

Each Access Database contain six different


types of objects. These are:
 Table
 Query
 Form
 Report
 Macro
 Module
TABLE
In access database you store information in
an object called a table.
Tables are rectangular arrangement of rows
and columns, where each column
represent a field and each row represent a
record.
Data types available in Access
Data type Type of data Field size
stored
Text Text are Up to 255
combination of characters
text and numbers
Memo Lengthy text such Up to 1 GB of
as notes, Characters
comments
Number Numeric data used 1,2,4,8 or 16
in mathematical Bytes
calculation
Date /Time Date and Time 8 Bytes
Value
Currency Currency Values and 8 Byte
Numeric Data with one
to four Decimal Place
Auto Number Unique numbers 4 byte
automatically inserted
when ipt blp record is
added
Yes/NO Contain one of two 1 bit
Values such as Yes/No,
True/False
OLE object Insert Object Limited by disk space
Hyperlink Used for storing Up to 64000 Characters
hyperlink
Attachment Attach Data from other
programs
Lookup wizard Used to create list of Typically 4 byte
values by using list box
Fields properties available in
Access
Field property Description
•Field size The size and type of values for the field
•Format Select predefined format for the field
•Caption It is used when we want to display an
alternate name for the field. Example
emp_code, Employee code
•Indexed Selecting Yes(No duplicates) will make
the value in the field Indexed and
Unique
•Input Mask Allow you to specify the pattern of
values entered in this field.
•Default value Value which will automatically entered in
this field for new record
Validation rule Define data entry rule. It enables you
to limit values that can be accepted
in to a field.
•Validation Text The error message that appears when a
value which is not in accordance with the
validation rule
•Required Specifies that data entry in to this field is
required or not
•Allow zero length Determines whether the field can be left
blank or not
•Decimal Values The number of digits to the right of the
decimal dot.
QUERIES- ASKING QUESTION
ABOUT STORED DATA AND
GETTING RESULT
Query is a statement that gives filtered data
according to specified conditions. Access has
powerful search capabilities. For example,
suppose you have an employee database and
you want to see the list of those employees
who are getting basic salary above Rs. 12000
such an enquiry can be easily put to access
database and receive the answer very fast.
FORM:MAKING DATA ENTRY
EASIER
Form is an interface in user specified layout
that allow users to view, enter or change
data directly in table. To make entry
easier , you can create object called form.
REPORT:MAKING YOUR
DATA EASILY READABLE
AND UNDERSTANDABLE
To make your data easily readable you can
create a report. Report is a presentable
printed document that list data in a
formatted manner. Report let you define
how you want the data printed on paper
or shown on the screen.
MACROS:AUTOMATING
REPETITIVE TASK
Macros are small programs used to
automate a repetitive task. Access has a
feature that you can use to perform
several actions with a single command.
MODULES:DEVELOPING
ACCESS DATABASE
APPLICATIONS
For full scale database application, access
provides visual basic for application. With
VBA, you can create programs for project
development.
CREATING BLANK DATABSE

 Click the office button and choose New


 Under New blank database, Click blank
database.
 In the blank database right pane, type a
file name in the file name box and click
Create.
CREATING A DATABASE
USING TEMPLATES
 Open Ms Access, click Local templates
option.
 Then click on the template from the center
of the window that you want.
CREATING A TABLE

 When you create a new blank database, a


new empty table is automatically inserted
for you.
CREATING A TABLE BASED
ON TEMPLATE
 Open the database in which you want to
create table.
 Click the Create Tab, In the Tables group
click Table Templates and then select
any one template from the list.
CREATING QUERY USING
DESIGN VIEW
 Click the Create Tab And click new query
object(query design).
 Show table dialog box appears.
 In the show table dialog box , add the
tables that you want in the query.
 Choose the fields that you want in the
query.
CREATING FORM USING
FORM WIZARD
 Click the Create Tab And click more forms
and then click form wizard.
CREATING REPORT USING
REPORT WIZARD
 Click the Create Tab And click report
wizard.
SQL [Structured Query
Language]
SQL is the standard language for making
queries in relational database packages such
as SQL server, Ingress, Sybase, Oracle etc.
SQL is a simple high level language that
enables us to utilize a database completely
and easily. It is very simple and powerful
language because it uses compact English like
statements and performs very complex jobs.
DDL [ Data Definition
Language]
Data Definition Language statements are
used to define the database structure or
Schema. Some examples:
 CREATE – to create object in the
Database.
 ALTER - alter the structure of the
database.
 DROP – delete object from the database.
RELATIONSHIP

Relationship are those attributes defined


from one table in another.

You might also like