SlideShare a Scribd company logo
1 of 34
1
Selected Topics in Management
Information Systems
[MOIS470]
Fall 2004
Nahed Amin
MS Access
(Tables, Forms, Queries, Reports)
2
Introduction
ī‚§ What’s Access?
īļ Access is a relational database application
designed to handle thousand or a few records
depending upon the user needs
īļ Access can simply list a collection of names and
addresses in a single table, or manage complex
relationships between data that pan several
tables
3
Introduction
ī‚§ Database tables are collections or lists of
records, each record holding individual
pieces of information in fields
ī‚§ As a database Management System
(DBMS), Access enables a user to create
and maintain these tables, employing
sophisticated, yet easy-to-use, tools to
facilitate defining, constructing, and
manipulating data
4
Introduction
ī‚§ To plan a database you need to do the
following:
īļ Decide what the function of the database will be
īļ Determine what information you need, where this
information will come from and how it will be
entered into the database
īļ Determine the structure of the database and the
relationships between the various tables
īļ Decide on the structure of the tables including
field names, field types and input validation.
īļ Decide which forms, reports and queries you will
use
5
Getting Started â€Ļ
ī‚§ In Access, a database application is
composed of database objects, which are:
īļ Tables
īļ Forms
īļ Queries
īļ Reports
īļ Pages
īļ Macros
īļ Modules
6
Getting Started â€Ļ
ī‚§ Access centralizes all database application into a single
database file. All the tables, forms, reports, and other
Access objects, designed for the database, are stored in
this file
ī‚§ Having a single database file not only eliminates
keeping tracks of a large number of individual files,
but also permits an Access database to be transported
much easier than other database types
ī‚§ Before you can begin constructing the individual
database object types, you must first create an Access
database file to contain the objects
7
Tables
ī‚§ Design a table:
īļ You can add individual fields to a blank table structure
using the panes in Table Design View
īļ The top pane is the grid and is used to specify a field’s
name, descriptive text, and data type.
īļ The bottom pane is the field properties section and is used to
specify field size and other attributes
īļ Each row in the grid corresponds to one field; a collection
of all fields is grouped into a record
īļ Access denotes that one field in every table contains unique
entries that distinguish that record from others, this is the
primary key field. The primary key field is denoted by a key
symbol in the field’s row selector box to the left of the field
row
8
Tables
ī‚§ Design a table:
īļ Within each field, there are three corresponding
columns in the grid:
īƒ˜ The first is the field name column, which defines the name of
the field
īƒ˜ The second is the data type column, which regulates what type
of data a field can hold, such as numbers, text, and dates
īƒ˜ The third column is the description; information in the
description column appears in the status bar when the field is
selected in either a form or datasheet view
īļ Field names appear as column headers in Table
Datasheet View
9
Tables
ī‚§ Design a table:
īļ A fundamental part of designing an Access database
table is knowing the proper data type to assign to a
field.
īļ A correctly defined field not only lends itself to
greater efficiency, but can also reduce compatibility
problems when your database application places
more demands on the data, such that in calculations
or concatenation
10
Tables
ī‚§ Design a table:
īļ Access data types are:
īƒ˜ AutoNumber holds records numbering (either incremental
or random)
īƒ˜ Date/Time holds dates & times (in a variety of common
formats)
īƒ˜ Currency holds currency values
īƒ˜ Text holds characters, numbers, punctuation
marks, and special symbols
īƒ˜ Memo stores a large quantity of text information
īƒ˜ Number holds only numbers, + or – signs, and
decimal places
11
Tables
ī‚§ Design a table:
īļ Access data types (cont.):
īƒ˜ Yes/No stores either a Yes or No value; appears in
datasheet view as a checkbox (also called a
logical or Boolean type)
īƒ˜ OLE holds graphics, sounds, and other object
Linking & Embedding objects
īƒ˜ Hyperlink stores URLs for Internet locations
īƒ˜ Lookup creates a field that allows you to retrieve
Wizard value from another table
12
Tables
ī‚§ Enter & delete data:
īļ Creating a database table is a two-part process; the first part
defines the structure of the table. The second part of the
process involves input from the user; this usually demands
physically typing the data into the table
īļ Data can be entered directly into a database table using the
table’s datasheet view; this view displays a table in a grid
format. Each row in the grid is a record, with each cell being
an individual field. You enter data by typing values directly
into these cells
īļ When you advance to a previous or new blank row, Access
writes the data to the table
īļ A single new blank record row will appear at the bottom of the
grid and is denoted by an asterisk (*) in the row selector
13
Tables
ī‚§ Format the datasheet:
īļ You can format the datasheet view to make data entry and viewing
easier and more productive
īļ You can adjust each field (or column width) in the grid to better
view its data. The data may not fully display because the default
column width is too narrow. You can click and drag a grid line to
manually resize a column or modify the column’s properties
īļ Access also enables you to change the text attributes (font size &
style, and color of text) of data appearing in the grid. The
modification of these characteristics is applied to all text in the grid
īļ Changing the column order of fields in the datasheet view will not
modify field order in the actual table structure
īļ Renaming a column header will rename the actual field name
14
Tables
ī‚§ Filter & sort tables:
īļ Records display in the order in which they were created by default
īļ Access provides sorting and filtering features to assist you in
organizing and delineating table data as the number of records
increases
īļ Records can be sorted in either ascending (low to high) or
descending (high to low) order based on a selected field
īļ Filtering data involves specifying conditions that a record must
meet to be selected. Filters can contain single or multiple conditions
(tests) that must be met for a record to be listed. A set of records
produced as a result of a filter is known as a dynaset
īļ You can apply two or more filters to the same table; in such case
logical conditions such as AND or OR are used
īļ When a table is closed, sorted or filtered records return to their
original state
15
Tables
ī‚§ Edit field attributes:
īļ You can make permanent modifications to the
structure of a new or an existing table using design
view. A new table may need modification after initial
data entry has exposed problems. Existing tables may
have to adapt to new data or be modified to function
under different circumstances
īļ Access enables you to change the data type of fields that
already contain values. However, certain changes don’t
provide for successful data conversions, such as
attempting to convert a field full of characters (text) to
a number value
16
Tables
ī‚§ Change format properties:
īļ Access by default displays data in the same format as
it was entered. You can have data displayed in a
different format.
īļ Access allows you to alter the display format but not
the value of data
īļ Located in the field properties pane of table design
view, the format property can access and implement
predefined formats (dependent on data type), or allow
you to construct a custom layout of your own
17
Forms
ī‚§ Forms provide a user interface for database
tables. They are used as the primary method of
entering, editing, and displaying data contained
in database tables
ī‚§ While you can use the datasheet to perform
many of the same functions,forms present
information in an organized manner, thus
enhancing data entry
ī‚§ Forms are generally layout documents that
combine graphic objects and table data
18
Forms
ī‚§ Forms are layout documents that use
special object types, called controls, to
provide access to table data
ī‚§ The controls are linked to specific fields in
the underlying table. The controls allow
you to modify the display of data and
perform data entry
19
Forms
ī‚§ Access supports three primary views for
working with forms:
īļ Form Design View, where the controls and layout can
be modified, but the table data is not displayed
īļ Form View, where controls linked to table fields
display the field’s value for the current record
īļ Datasheet View, where you can work directly with the
table used by the form
20
Forms
ī‚§ Use a Form Wizard
īļ The Form Wizard can assist you in constructing basic form
layouts. Instead of constructing a form manually, you can use the
Form Wizard to quickly produce a basic form layout
īļ The Form Wizard prompts you for necessary information to
construct a form according to one of several predefined layout
types. After answering each question, you can advance to the
next window or return to previous windows to select different
options
īļ The Form Wizard allows you to define the underlying table(s),
field inclusion, and basic layout schemes. You can quickly create
and link controls to an underlying table(s)
īļ If necessary, you can later customize the form in Form Design
View
21
Forms
ī‚§ Design a Form
īļ Constructing a layout manually allows you to create
more specialized forms
īļ Creating or editing a form manually can be performed
using the Form Design View
īļ There are four design features in the Form Design
View:
īƒ˜ Field List Dialog Box: contains a list of fields supported by
the form underlying database table(s). Drag a field to the
form area to instantly create label and text-box controls for
that field
īƒ˜ Property Sheet: list properties of the controls on the form and
allows you to modify them
īƒ˜ Palette: contains buttons to control the appearance and
colors of forms and objects
īƒ˜ Toolbox: contains tools to help you insert controls on the
form layout
22
Forms
ī‚§ Design a Form
īļ The form area (appearing as a grid) can be divided
into several sections
īļ The form supports only a Detail section by default,
which is the main body of the form. Controls linked to
field in this section change every time the form
displays a new record
īļ The Footer and Header sections permit you to create
controls that are not dependent on the current record,
such as title header
23
Queries
ī‚§ Access uses a query to extract information from a
database table. You construct a query using a
design grid
ī‚§ Queries are designed and executed from the
Query window. The window consists of two
panes:
īļ Top pane: displays the field-list boxes and any
relationships or links between tables
īļ Lower pane: contains the design grid and is used to specify
the fields, sort order, and search criteria. Search criteria
must be specified within the column of the field the criteria
will test. Query criteria can be string, numbers or a range
of values
24
Queries
ī‚§ Access displays the results of a query in a layout
called a dynaset, which is a temporary list of
records that match the current query.
ī‚§ Dynasets are linked to the tables used to create
them. If you change the value of a field in a
dynaset, the corresponding field in the underlying
table is changed.
ī‚§ As the data in a dynaset’s base table change, so
does the dynaset
ī‚§ You can save the query and its specifications, but
you cannot directly save a dynaset as a database
table
25
Queries
ī‚§ Sort Data
īļ Access does not sort the records it displays by default.
The records are displayed in the order found
īļ Sorting data presents it in an organized manner.
Sorted results help identify groups and trends
īļ Although Access permits you to use datasheet-oriented
sorted controls, the resulting sort remains only while
the dynaset table is active. If the underlying query is
re-run, the sort order is lost. You can establish a
permanent sort order by specifying it in the design
grid
īļ Each column in the design grid can have a sort order
to be chosen, permitting you to specify a sort order for
one or all fields appearing in the resulting dynaset
26
Queries
ī‚§ Sort Data
īļ Complex sorts can be defined by applying sort orders
to multiple fields
īļ Click and drag the column selector of a field (in the
design grid) to reposition the field
īļ The left-most field in the design grid with a sort order
defined will control the primary sort order. If
subsequent fields also have a sort order defined, these
orders will be secondary
27
Queries
ī‚§ Use Multiple Criteria: ANDs / ORs
īļ Single criteria queries are often too limited to extract
specific information. Sophisticated queries use multiple
criteria. Access enables queries to contain multiple criteria
through use of AND and OR conditions
īļ The AND condition is used to join two or more query
criteria. The first criterion and the second one must
both test true before a record is retrieved
īļ AND conditions help construct queries that are restrictive,
reducing the number of records appearing in a dynaset.
When you need queries to be more inclusive, considering
one or more alternative values, OR condition must be used
28
Queries
ī‚§ Use Multiple Criteria: ANDs / ORs
īļ A multiple-criteria query using OR conditions displays
a record if one or the other (or both) of its criteria
tests as true. Records do not display if all the criteria
tests as false
īļ The design grid itself supports AND and OR
conditions. If, however, you need to specify an AND
condition for values in the same field, you must
manually key in the AND operator using the
Expression Builder or Zoom window
29
Queries
ī‚§ Create a Parameter Query
īļ Parameter queries allow you to have Access prompt
you for search values before execution. You can easily
enter different parameter values when prompted,
rather than modifying criteria values in the design
grid for each new search value
īļ Parameter query is useful when you expect to run a
query repeatedly with changes to the query criteria,
but not to the actual structure of the query
īļ Parameter queries can search for different values in
the same fields. This is possible through the
substitution of parameter statements with actual field
criteria
30
Queries
ī‚§ Create a Parameter Query
īļ The text in the parameter statements should be
enclosed in square brackets, and the last character in
the text must be a colon
īƒ˜ Example: [Enter City:]
īļ When a parameter query is encountered, the Enter
Parameter Value dialog box will open, prompting you
for a value. When concluded, the query internally
substitutes the parameter statements with the actual
values you entered and returns the resulting matches
31
Queries
ī‚§ Create a Parameter Query
īļ To prevent you from entering a parameter value that
is of the wrong type (i.e. a string value for a number
field), Access permits you to define data types for the
parameter values. You can define the data type a
parameter will accept in the Query Parameter dialog
box, reducing the possibility of error
īļ Ranges can be used with parameter statements. You
must define the comparison operator before adding
the parameter statement. Access will evaluate the
entire statement as a single expression
32
Reports
ī‚§ A report is a design document that displays
formatted data from one or more database tables.
Reports are designed for printing and
distribution to an audience
ī‚§ Reports are used to summarize large quantities of
data into meaningful information using
calculations, record lists, totals, and other reports
objects
ī‚§ Reports produce paper forms such as invoices
and inventory lists
33
Reports
ī‚§ Access provides several Report Wizards to assist
you in the construction of reports. Report Wizards
prompt you for basic information about the
report, and then create a basic report layout
ī‚§ Access permits you to view and modify the results
of a Report Wizard just as you would do for an
report created manually. You can use the tools
supported by Report Design View to move, insert,
and modify objects to customize the report
34
Reports
ī‚§ Reports have a Design View and a Run View.
Reports are designed under the assumption that
the data and formatting will be printed. Access
supports a Print Preview that allows you to insect
the report before printing it
ī‚§ Reports can be based on either a database table
or the result of a query

More Related Content

Similar to MS-Access Tables Forms Queries Reports.ppt

Similar to MS-Access Tables Forms Queries Reports.ppt (20)

Create a table access - office
Create a table   access - officeCreate a table   access - office
Create a table access - office
 
MS Office Access Tutorial
MS Office Access TutorialMS Office Access Tutorial
MS Office Access Tutorial
 
CIS145 Final Review
CIS145 Final ReviewCIS145 Final Review
CIS145 Final Review
 
Basic introduction to ms access
Basic introduction to ms accessBasic introduction to ms access
Basic introduction to ms access
 
Cis145 Final Review
Cis145 Final ReviewCis145 Final Review
Cis145 Final Review
 
OPERATE DATABASE APPLICATION
OPERATE DATABASE APPLICATIONOPERATE DATABASE APPLICATION
OPERATE DATABASE APPLICATION
 
Chapter 5 ms access-1
Chapter 5   ms access-1Chapter 5   ms access-1
Chapter 5 ms access-1
 
Cis145 Final Review
Cis145 Final ReviewCis145 Final Review
Cis145 Final Review
 
Ms access 2007 pptx
Ms access 2007 pptxMs access 2007 pptx
Ms access 2007 pptx
 
CIS145 Test 1 Review
CIS145 Test 1 ReviewCIS145 Test 1 Review
CIS145 Test 1 Review
 
Priyank Goel PPT.pptx
Priyank Goel PPT.pptxPriyank Goel PPT.pptx
Priyank Goel PPT.pptx
 
Access lesson 02 Creating a Database
Access lesson 02 Creating a DatabaseAccess lesson 02 Creating a Database
Access lesson 02 Creating a Database
 
Access lesson 02 Creating a Database
Access lesson 02 Creating a DatabaseAccess lesson 02 Creating a Database
Access lesson 02 Creating a Database
 
Access Basics 01
Access Basics 01Access Basics 01
Access Basics 01
 
MS ACCESS PPT.pptx
MS ACCESS PPT.pptxMS ACCESS PPT.pptx
MS ACCESS PPT.pptx
 
01 Microsoft Access
01 Microsoft Access01 Microsoft Access
01 Microsoft Access
 
Adding A New Field
Adding A New FieldAdding A New Field
Adding A New Field
 
Ms access
Ms accessMs access
Ms access
 
Database DESIGN CONCEPTSDr. Dexter Francis2Data Design
Database DESIGN CONCEPTSDr. Dexter Francis2Data DesignDatabase DESIGN CONCEPTSDr. Dexter Francis2Data Design
Database DESIGN CONCEPTSDr. Dexter Francis2Data Design
 
ITB - UNIT 4.pdf
ITB - UNIT 4.pdfITB - UNIT 4.pdf
ITB - UNIT 4.pdf
 

More from wondmhunegn

sql-basic.ppt
sql-basic.pptsql-basic.ppt
sql-basic.pptwondmhunegn
 
Microsoft Access.ppt
Microsoft Access.pptMicrosoft Access.ppt
Microsoft Access.pptwondmhunegn
 
Module 2 Slides.ppt
Module 2 Slides.pptModule 2 Slides.ppt
Module 2 Slides.pptwondmhunegn
 
ETE105_lecture 3.ppt
ETE105_lecture 3.pptETE105_lecture 3.ppt
ETE105_lecture 3.pptwondmhunegn
 
BasicComputerParts.ppt
BasicComputerParts.pptBasicComputerParts.ppt
BasicComputerParts.pptwondmhunegn
 
Chapter 1 Data structure.pptx
Chapter 1 Data structure.pptxChapter 1 Data structure.pptx
Chapter 1 Data structure.pptxwondmhunegn
 
IS230 - Chapter 4 - Keys and Relationship - Revised.ppt
IS230 - Chapter 4 - Keys and Relationship - Revised.pptIS230 - Chapter 4 - Keys and Relationship - Revised.ppt
IS230 - Chapter 4 - Keys and Relationship - Revised.pptwondmhunegn
 
DatabaseFundamentals.ppt
DatabaseFundamentals.pptDatabaseFundamentals.ppt
DatabaseFundamentals.pptwondmhunegn
 
Data Types and Field Properties.ppt
Data Types and Field Properties.pptData Types and Field Properties.ppt
Data Types and Field Properties.pptwondmhunegn
 
Template.pptx
Template.pptxTemplate.pptx
Template.pptxwondmhunegn
 

More from wondmhunegn (11)

sql-basic.ppt
sql-basic.pptsql-basic.ppt
sql-basic.ppt
 
Microsoft Access.ppt
Microsoft Access.pptMicrosoft Access.ppt
Microsoft Access.ppt
 
Module 2 Slides.ppt
Module 2 Slides.pptModule 2 Slides.ppt
Module 2 Slides.ppt
 
ETE105_lecture 3.ppt
ETE105_lecture 3.pptETE105_lecture 3.ppt
ETE105_lecture 3.ppt
 
BasicComputerParts.ppt
BasicComputerParts.pptBasicComputerParts.ppt
BasicComputerParts.ppt
 
tree.ppt
tree.ppttree.ppt
tree.ppt
 
Chapter 1 Data structure.pptx
Chapter 1 Data structure.pptxChapter 1 Data structure.pptx
Chapter 1 Data structure.pptx
 
IS230 - Chapter 4 - Keys and Relationship - Revised.ppt
IS230 - Chapter 4 - Keys and Relationship - Revised.pptIS230 - Chapter 4 - Keys and Relationship - Revised.ppt
IS230 - Chapter 4 - Keys and Relationship - Revised.ppt
 
DatabaseFundamentals.ppt
DatabaseFundamentals.pptDatabaseFundamentals.ppt
DatabaseFundamentals.ppt
 
Data Types and Field Properties.ppt
Data Types and Field Properties.pptData Types and Field Properties.ppt
Data Types and Field Properties.ppt
 
Template.pptx
Template.pptxTemplate.pptx
Template.pptx
 

Recently uploaded

Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptxmary850239
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxAnupkumar Sharma
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)
Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)
Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)lakshayb543
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPCeline George
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for BeginnersSabitha Banu
 

Recently uploaded (20)

Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx4.18.24 Movement Legacies, Reflection, and Review.pptx
4.18.24 Movement Legacies, Reflection, and Review.pptx
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptxMULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
MULTIDISCIPLINRY NATURE OF THE ENVIRONMENTAL STUDIES.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)
Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)
Visit to a blind student's school🧑‍đŸĻ¯đŸ§‘‍đŸĻ¯(community medicine)
 
How to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERPHow to do quick user assign in kanban in Odoo 17 ERP
How to do quick user assign in kanban in Odoo 17 ERP
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptxLEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
LEFT_ON_C'N_ PRELIMS_EL_DORADO_2024.pptx
 
Full Stack Web Development Course for Beginners
Full Stack Web Development Course  for BeginnersFull Stack Web Development Course  for Beginners
Full Stack Web Development Course for Beginners
 

MS-Access Tables Forms Queries Reports.ppt

  • 1. 1 Selected Topics in Management Information Systems [MOIS470] Fall 2004 Nahed Amin MS Access (Tables, Forms, Queries, Reports)
  • 2. 2 Introduction ī‚§ What’s Access? īļ Access is a relational database application designed to handle thousand or a few records depending upon the user needs īļ Access can simply list a collection of names and addresses in a single table, or manage complex relationships between data that pan several tables
  • 3. 3 Introduction ī‚§ Database tables are collections or lists of records, each record holding individual pieces of information in fields ī‚§ As a database Management System (DBMS), Access enables a user to create and maintain these tables, employing sophisticated, yet easy-to-use, tools to facilitate defining, constructing, and manipulating data
  • 4. 4 Introduction ī‚§ To plan a database you need to do the following: īļ Decide what the function of the database will be īļ Determine what information you need, where this information will come from and how it will be entered into the database īļ Determine the structure of the database and the relationships between the various tables īļ Decide on the structure of the tables including field names, field types and input validation. īļ Decide which forms, reports and queries you will use
  • 5. 5 Getting Started â€Ļ ī‚§ In Access, a database application is composed of database objects, which are: īļ Tables īļ Forms īļ Queries īļ Reports īļ Pages īļ Macros īļ Modules
  • 6. 6 Getting Started â€Ļ ī‚§ Access centralizes all database application into a single database file. All the tables, forms, reports, and other Access objects, designed for the database, are stored in this file ī‚§ Having a single database file not only eliminates keeping tracks of a large number of individual files, but also permits an Access database to be transported much easier than other database types ī‚§ Before you can begin constructing the individual database object types, you must first create an Access database file to contain the objects
  • 7. 7 Tables ī‚§ Design a table: īļ You can add individual fields to a blank table structure using the panes in Table Design View īļ The top pane is the grid and is used to specify a field’s name, descriptive text, and data type. īļ The bottom pane is the field properties section and is used to specify field size and other attributes īļ Each row in the grid corresponds to one field; a collection of all fields is grouped into a record īļ Access denotes that one field in every table contains unique entries that distinguish that record from others, this is the primary key field. The primary key field is denoted by a key symbol in the field’s row selector box to the left of the field row
  • 8. 8 Tables ī‚§ Design a table: īļ Within each field, there are three corresponding columns in the grid: īƒ˜ The first is the field name column, which defines the name of the field īƒ˜ The second is the data type column, which regulates what type of data a field can hold, such as numbers, text, and dates īƒ˜ The third column is the description; information in the description column appears in the status bar when the field is selected in either a form or datasheet view īļ Field names appear as column headers in Table Datasheet View
  • 9. 9 Tables ī‚§ Design a table: īļ A fundamental part of designing an Access database table is knowing the proper data type to assign to a field. īļ A correctly defined field not only lends itself to greater efficiency, but can also reduce compatibility problems when your database application places more demands on the data, such that in calculations or concatenation
  • 10. 10 Tables ī‚§ Design a table: īļ Access data types are: īƒ˜ AutoNumber holds records numbering (either incremental or random) īƒ˜ Date/Time holds dates & times (in a variety of common formats) īƒ˜ Currency holds currency values īƒ˜ Text holds characters, numbers, punctuation marks, and special symbols īƒ˜ Memo stores a large quantity of text information īƒ˜ Number holds only numbers, + or – signs, and decimal places
  • 11. 11 Tables ī‚§ Design a table: īļ Access data types (cont.): īƒ˜ Yes/No stores either a Yes or No value; appears in datasheet view as a checkbox (also called a logical or Boolean type) īƒ˜ OLE holds graphics, sounds, and other object Linking & Embedding objects īƒ˜ Hyperlink stores URLs for Internet locations īƒ˜ Lookup creates a field that allows you to retrieve Wizard value from another table
  • 12. 12 Tables ī‚§ Enter & delete data: īļ Creating a database table is a two-part process; the first part defines the structure of the table. The second part of the process involves input from the user; this usually demands physically typing the data into the table īļ Data can be entered directly into a database table using the table’s datasheet view; this view displays a table in a grid format. Each row in the grid is a record, with each cell being an individual field. You enter data by typing values directly into these cells īļ When you advance to a previous or new blank row, Access writes the data to the table īļ A single new blank record row will appear at the bottom of the grid and is denoted by an asterisk (*) in the row selector
  • 13. 13 Tables ī‚§ Format the datasheet: īļ You can format the datasheet view to make data entry and viewing easier and more productive īļ You can adjust each field (or column width) in the grid to better view its data. The data may not fully display because the default column width is too narrow. You can click and drag a grid line to manually resize a column or modify the column’s properties īļ Access also enables you to change the text attributes (font size & style, and color of text) of data appearing in the grid. The modification of these characteristics is applied to all text in the grid īļ Changing the column order of fields in the datasheet view will not modify field order in the actual table structure īļ Renaming a column header will rename the actual field name
  • 14. 14 Tables ī‚§ Filter & sort tables: īļ Records display in the order in which they were created by default īļ Access provides sorting and filtering features to assist you in organizing and delineating table data as the number of records increases īļ Records can be sorted in either ascending (low to high) or descending (high to low) order based on a selected field īļ Filtering data involves specifying conditions that a record must meet to be selected. Filters can contain single or multiple conditions (tests) that must be met for a record to be listed. A set of records produced as a result of a filter is known as a dynaset īļ You can apply two or more filters to the same table; in such case logical conditions such as AND or OR are used īļ When a table is closed, sorted or filtered records return to their original state
  • 15. 15 Tables ī‚§ Edit field attributes: īļ You can make permanent modifications to the structure of a new or an existing table using design view. A new table may need modification after initial data entry has exposed problems. Existing tables may have to adapt to new data or be modified to function under different circumstances īļ Access enables you to change the data type of fields that already contain values. However, certain changes don’t provide for successful data conversions, such as attempting to convert a field full of characters (text) to a number value
  • 16. 16 Tables ī‚§ Change format properties: īļ Access by default displays data in the same format as it was entered. You can have data displayed in a different format. īļ Access allows you to alter the display format but not the value of data īļ Located in the field properties pane of table design view, the format property can access and implement predefined formats (dependent on data type), or allow you to construct a custom layout of your own
  • 17. 17 Forms ī‚§ Forms provide a user interface for database tables. They are used as the primary method of entering, editing, and displaying data contained in database tables ī‚§ While you can use the datasheet to perform many of the same functions,forms present information in an organized manner, thus enhancing data entry ī‚§ Forms are generally layout documents that combine graphic objects and table data
  • 18. 18 Forms ī‚§ Forms are layout documents that use special object types, called controls, to provide access to table data ī‚§ The controls are linked to specific fields in the underlying table. The controls allow you to modify the display of data and perform data entry
  • 19. 19 Forms ī‚§ Access supports three primary views for working with forms: īļ Form Design View, where the controls and layout can be modified, but the table data is not displayed īļ Form View, where controls linked to table fields display the field’s value for the current record īļ Datasheet View, where you can work directly with the table used by the form
  • 20. 20 Forms ī‚§ Use a Form Wizard īļ The Form Wizard can assist you in constructing basic form layouts. Instead of constructing a form manually, you can use the Form Wizard to quickly produce a basic form layout īļ The Form Wizard prompts you for necessary information to construct a form according to one of several predefined layout types. After answering each question, you can advance to the next window or return to previous windows to select different options īļ The Form Wizard allows you to define the underlying table(s), field inclusion, and basic layout schemes. You can quickly create and link controls to an underlying table(s) īļ If necessary, you can later customize the form in Form Design View
  • 21. 21 Forms ī‚§ Design a Form īļ Constructing a layout manually allows you to create more specialized forms īļ Creating or editing a form manually can be performed using the Form Design View īļ There are four design features in the Form Design View: īƒ˜ Field List Dialog Box: contains a list of fields supported by the form underlying database table(s). Drag a field to the form area to instantly create label and text-box controls for that field īƒ˜ Property Sheet: list properties of the controls on the form and allows you to modify them īƒ˜ Palette: contains buttons to control the appearance and colors of forms and objects īƒ˜ Toolbox: contains tools to help you insert controls on the form layout
  • 22. 22 Forms ī‚§ Design a Form īļ The form area (appearing as a grid) can be divided into several sections īļ The form supports only a Detail section by default, which is the main body of the form. Controls linked to field in this section change every time the form displays a new record īļ The Footer and Header sections permit you to create controls that are not dependent on the current record, such as title header
  • 23. 23 Queries ī‚§ Access uses a query to extract information from a database table. You construct a query using a design grid ī‚§ Queries are designed and executed from the Query window. The window consists of two panes: īļ Top pane: displays the field-list boxes and any relationships or links between tables īļ Lower pane: contains the design grid and is used to specify the fields, sort order, and search criteria. Search criteria must be specified within the column of the field the criteria will test. Query criteria can be string, numbers or a range of values
  • 24. 24 Queries ī‚§ Access displays the results of a query in a layout called a dynaset, which is a temporary list of records that match the current query. ī‚§ Dynasets are linked to the tables used to create them. If you change the value of a field in a dynaset, the corresponding field in the underlying table is changed. ī‚§ As the data in a dynaset’s base table change, so does the dynaset ī‚§ You can save the query and its specifications, but you cannot directly save a dynaset as a database table
  • 25. 25 Queries ī‚§ Sort Data īļ Access does not sort the records it displays by default. The records are displayed in the order found īļ Sorting data presents it in an organized manner. Sorted results help identify groups and trends īļ Although Access permits you to use datasheet-oriented sorted controls, the resulting sort remains only while the dynaset table is active. If the underlying query is re-run, the sort order is lost. You can establish a permanent sort order by specifying it in the design grid īļ Each column in the design grid can have a sort order to be chosen, permitting you to specify a sort order for one or all fields appearing in the resulting dynaset
  • 26. 26 Queries ī‚§ Sort Data īļ Complex sorts can be defined by applying sort orders to multiple fields īļ Click and drag the column selector of a field (in the design grid) to reposition the field īļ The left-most field in the design grid with a sort order defined will control the primary sort order. If subsequent fields also have a sort order defined, these orders will be secondary
  • 27. 27 Queries ī‚§ Use Multiple Criteria: ANDs / ORs īļ Single criteria queries are often too limited to extract specific information. Sophisticated queries use multiple criteria. Access enables queries to contain multiple criteria through use of AND and OR conditions īļ The AND condition is used to join two or more query criteria. The first criterion and the second one must both test true before a record is retrieved īļ AND conditions help construct queries that are restrictive, reducing the number of records appearing in a dynaset. When you need queries to be more inclusive, considering one or more alternative values, OR condition must be used
  • 28. 28 Queries ī‚§ Use Multiple Criteria: ANDs / ORs īļ A multiple-criteria query using OR conditions displays a record if one or the other (or both) of its criteria tests as true. Records do not display if all the criteria tests as false īļ The design grid itself supports AND and OR conditions. If, however, you need to specify an AND condition for values in the same field, you must manually key in the AND operator using the Expression Builder or Zoom window
  • 29. 29 Queries ī‚§ Create a Parameter Query īļ Parameter queries allow you to have Access prompt you for search values before execution. You can easily enter different parameter values when prompted, rather than modifying criteria values in the design grid for each new search value īļ Parameter query is useful when you expect to run a query repeatedly with changes to the query criteria, but not to the actual structure of the query īļ Parameter queries can search for different values in the same fields. This is possible through the substitution of parameter statements with actual field criteria
  • 30. 30 Queries ī‚§ Create a Parameter Query īļ The text in the parameter statements should be enclosed in square brackets, and the last character in the text must be a colon īƒ˜ Example: [Enter City:] īļ When a parameter query is encountered, the Enter Parameter Value dialog box will open, prompting you for a value. When concluded, the query internally substitutes the parameter statements with the actual values you entered and returns the resulting matches
  • 31. 31 Queries ī‚§ Create a Parameter Query īļ To prevent you from entering a parameter value that is of the wrong type (i.e. a string value for a number field), Access permits you to define data types for the parameter values. You can define the data type a parameter will accept in the Query Parameter dialog box, reducing the possibility of error īļ Ranges can be used with parameter statements. You must define the comparison operator before adding the parameter statement. Access will evaluate the entire statement as a single expression
  • 32. 32 Reports ī‚§ A report is a design document that displays formatted data from one or more database tables. Reports are designed for printing and distribution to an audience ī‚§ Reports are used to summarize large quantities of data into meaningful information using calculations, record lists, totals, and other reports objects ī‚§ Reports produce paper forms such as invoices and inventory lists
  • 33. 33 Reports ī‚§ Access provides several Report Wizards to assist you in the construction of reports. Report Wizards prompt you for basic information about the report, and then create a basic report layout ī‚§ Access permits you to view and modify the results of a Report Wizard just as you would do for an report created manually. You can use the tools supported by Report Design View to move, insert, and modify objects to customize the report
  • 34. 34 Reports ī‚§ Reports have a Design View and a Run View. Reports are designed under the assumption that the data and formatting will be printed. Access supports a Print Preview that allows you to insect the report before printing it ī‚§ Reports can be based on either a database table or the result of a query