ms access -akansha gupta
TRANSCRIPT
-
8/11/2019 Ms Access -Akansha Gupta
1/26
MS ACCESSMID-TERM SUBMISSION
SUBMITTED TO:
PROF I CHAKRAPANI
SUBMITTED BY:
AKANSHA GUPTA
-
8/11/2019 Ms Access -Akansha Gupta
2/26
-
8/11/2019 Ms Access -Akansha Gupta
3/26
Access Database Objects3
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
-
8/11/2019 Ms Access -Akansha Gupta
4/26
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.
-
8/11/2019 Ms Access -Akansha Gupta
5/26
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
-
8/11/2019 Ms Access -Akansha Gupta
6/26
Create a Database in MS Access6
Click on the round Office button
Choose New from the drop-down menu In Create Blank Database window
specify the database name
Click Create
-
8/11/2019 Ms Access -Akansha Gupta
7/26
Create Table7
Using Wizard
Design View
Specify field names
Data types
Properties
Determine a primary key
Save the table
-
8/11/2019 Ms Access -Akansha Gupta
8/26
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
-
8/11/2019 Ms Access -Akansha Gupta
9/26
Referential Integrity Constraints9
Referential Integrity
Can be established or removed in Relationship window
In MS Access 1995-2003 open menu Toolsand chooseRelationships from the drop-down menu
In MS Access 2007 and up choose Database Tools taband then Relationships
Use drag-and-dropfeatures and select EnforceReferential Integrityoption
Tip
specify referential integrity constraints before datais entered
-
8/11/2019 Ms Access -Akansha Gupta
10/26
Queries10
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
-
8/11/2019 Ms Access -Akansha Gupta
11/26
Query Criteria11
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
-
8/11/2019 Ms Access -Akansha Gupta
12/26
Math Operators12
+ Addition
- Subtraction
* Multiplication/ Division
\ Integer Division
^ ExponentiationMod Modulo (remainder) division
-
8/11/2019 Ms Access -Akansha Gupta
13/26
Relational Operators13
= Equal
Not equal< Less than
> Greater than
= Greater than or equal to
-
8/11/2019 Ms Access -Akansha Gupta
14/26
Boolean Operator14
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 ofthem) are true
Not Negation Operand is not true
-
8/11/2019 Ms Access -Akansha Gupta
15/26
String and Miscellaneous
Operators15
& Concatenation
Like Similar to
Betweenand
Between 2 values inclusive
In (list) One from the listIs Null True if the field is empty
-
8/11/2019 Ms Access -Akansha Gupta
16/26
Access Forms16
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
-
8/11/2019 Ms Access -Akansha Gupta
17/26
Form Design view17
Form Header a place for titles,graphics, additional information
Form Details section
the fields used tocreate a form and control elementsrelated to the fields
Form footer a place for any items which
will appear at the bottom of the form
-
8/11/2019 Ms Access -Akansha Gupta
18/26
Form Controls18
Must be bound with fields from the sourcetable or query
Contain data from correspondent fields,labels or other controls (like commandbutton) or another form called subform
-
8/11/2019 Ms Access -Akansha Gupta
19/26
Viewing Forms19
Open database
Click Forms tab to display all available formsin the database
Select the form Select Open
To view data use Form Navigation Tools. Toprevent data Editing, use Locked Property forthe Text Boxes
-
8/11/2019 Ms Access -Akansha Gupta
20/26
Creating Subforms20
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 clickon a form where the subform should appear
Specify the source for the subform
Specify the fields to link the form and subform
-
8/11/2019 Ms Access -Akansha Gupta
21/26
Reports21
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
-
8/11/2019 Ms Access -Akansha Gupta
22/26
Report Design View22
Page Header contains data and graphicsappearing at the top of each page
Report Header contains the data and graphicsappearing 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
-
8/11/2019 Ms Access -Akansha Gupta
23/26
Report Types23
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 ofthe reports
-
8/11/2019 Ms Access -Akansha Gupta
24/26
Creating Reports24
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.
-
8/11/2019 Ms Access -Akansha Gupta
25/26
MS ACCESS - HYPERLINK25
Ms access
http://localhost/Users/akanshagupta/Desktop/akansha/employee_department%20database.accdbhttp://localhost/Users/akanshagupta/Desktop/akansha/employee_department%20database.accdb -
8/11/2019 Ms Access -Akansha Gupta
26/26
THANK YOU
26