You are on page 1of 26

MS ACCESS

MID-TERM SUBMISSION
SUBMITTED TO:
PROF I CHAKRAPANI
SUBMITTED BY:
AKANSHA GUPTA

MS Access
2
Relational data model
Data is stored in tables incorporated into
database files with extension mdb or accdb
Standard Windows interface
Standard Help system
Part of MS Office suite
Access Database Objects
3
Tables contain rows called records and
columns called fields.
Queries are requests for specific information
from a database.
Queries are virtual tables built on a given SQL
statement

Access Database Objects (cont.
)
4
Forms are parts of user interface. Forms are
used to enter, edit or browse data from a
database

Reports present requested information and
allow to create hard copies.
Data Types
Text
Memo
Numbers
Byte
Integer
Long integer
Single
Double
Date/time

Currency
AutoNumber
Yes/No
Yes/no
True/False
1/0
OLE Objects
Hyperlink
Lookup Wizard

5
Create a Database in MS Access
6
Click on the round Office button
Choose New from the drop-down menu
In Create Blank Database window
specify the database name
Click Create
Create Table
7
Using Wizard
Design View
Specify field names
Data types
Properties
Determine a primary key
Save the table
Access Tables

8
Design view
Table structure is created and may be edited
Datasheet view
Display table content in spreadsheet-like grid,
Used for entering, editing or deleting data from
tables

Referential Integrity Constraints
9
Referential Integrity
Can be established or removed in Relationship window
In MS Access 1995-2003 open menu Tools and choose
Relationships from the drop-down menu
In MS Access 2007 and up choose Database Tools tab
and then Relationships
Use drag-and-drop features and select Enforce
Referential Integrity option
Tip specify referential integrity constraints before data
is entered
Queries
10
Specify the source of data
If multiple tables are used, specify
relationships between tables
Select desirable fields from the table(s) and
options related to the fields
Specify a criterion
Query Criteria
11
To be selected a record must satisfy a criterion
Expressions may contain the following
operators:
Math Operators
Relational operators
Boolean Operators
String Operators
Miscellaneous Operators
Math Operators
12
+ Addition
- Subtraction
* Multiplication
/ Division
\ Integer Division
^ Exponentiation
Mod Modulo (remainder) division
Relational Operators
13
= Equal
<> Not equal
< Less than
> Greater than
<= Less than or equal to
>= Greater than or equal to
Boolean Operator
14
And Logical And Both operands are true
Or Logical Or Either one of the
operands or both of
them are true
Xor Excusive Or Only one of the
operands (not both of
them) are true
Not Negation Operand is not true
String and Miscellaneous
Operators
15
& Concatenation
Like Similar to
Between
and
Between 2 values inclusive
In (list) One from the list
Is Null True if the field is empty
Access Forms
16
Create using Form Wizard
Create using Form Design view
Specify source of data will be presented by the
form
Table
Query
Specify fields related to the form
Add labels, titles, graphics and so on
Form Design view
17
Form Header a place for titles,
graphics, additional information
Form Details section the fields used to
create a form and control elements
related to the fields
Form footer a place for any items which
will appear at the bottom of the form

Form Controls
18
Must be bound with fields from the source
table or query

Contain data from correspondent fields,
labels or other controls (like command
button) or another form called subform

Viewing Forms
19
Open database
Click Forms tab to display all available forms
in the database
Select the form
Select Open
To view data use Form Navigation Tools. To
prevent data Editing, use Locked Property for
the Text Boxes
Creating Subforms
20
Represent 1:N relationships
To add a subform to a form
Create a form that will be a subform
Click on Subform/Subreport button and then click
on a form where the subform should appear
Specify the source for the subform
Specify the fields to link the form and subform
Reports
21
Reports present table contents or query results
in an easily assimilated format
Reports have Design view and Print Preview
Report Design View is similar to the Form
Design view
Report Design View
22
Page Header contains data and graphics
appearing at the top of each page
Report Header contains the data and graphics
appearing at the top of the first report page
Detailed section contains data from tables or
queries
Page Footer contains the data and graphics
appearing at the bottom of every page
Report Footer contains the data and graphics
appearing at the bottom of the last report page
Report Types
23
Columnar reports a single record on a page
Tabular reports datasheets: fields from the
tables are presented as columns
Justified reports combine two previous types of
the reports
Creating Reports
24
With a Wizard
Design view:
Specify source for the report
Select Fields from the Fields List
Add labels
Add format
Switch the view to see the result.
MS ACCESS - HYPERLINK
25
Ms access
THANK YOU
26

You might also like