Microsoft Access 2003 Introduction
Microsoft Access 2003 Introduction
Course Objectives
In this course you will learn how to:
Understand database concepts and terminology
in Access 2003
Design and create tables
Enter and manipulate data in tables
Use Access queries to select and analyze
information in a table
Create data forms for viewing and inputting data
Create reports that summarize and group data
Perform database maintenance procedures
Tables
Querie
Forms
s
Page
Repor
s
ts
Macro
Module
s
s
Database
Database Window
Database Window
Main database design/management window
Displayed when creating or opening an Access
database
You can use the Objects toolbar to access the
different objects that make up a database
Tables
What is table
Basic container for data, arranged as a grid of rows
and columns
Each row contains a single record
Each column represents a field within the record
Access tables
Fundamental data objects in Access
Forms,
Forms
What is form
Electronic version of paper form
Used to simplify entry of data into an Access
database
Queries
What is a Query?
A question asked of the database
Used to extract specific information from database
Used to extract specific information from database
Example:What
language(SQL) statements
Example:
Report
What is report?
Formatted template used to print reports of
database or query results
Allows user to specify fields, grouping levels,
arrangement of printed data
Macros
What is access macro?
User-defined sequence of actions to be performed by
Access 2000
Macros will not be covered
Modules
What is a module?
User-created sections of code which provide
Creating Database
Case study scenario:
In this section, we will create a database
(including tables, forms, reports, and
queries).
The database we will create will have
addresses.
Creating a new database
Start Access
Select Create new database using blank
database
Assign a name for the new database
AddressBook.MDB
Tables
table specifications)
Table Wizard
Automated table creation facility
Import table
Import data from external tables
Link Table
Link to data in external tables
Data Type
Drop-down list displays available data types
Number, Date/Time, Currency,Auto number, Yes/No, OLE
Object, Hyperlink, Lookup Wizard
Description
Comment describing details of field. Appears on the
Usage
Size
Text
Alphanumeric data
Up to 255 characters
Memo
Up to 64,000 characters
Number
Numeric data
Date/Time
8 bytes
Currency
8 bytes
AutoNumber
Yes/No
<1 bit/FONT>
OLE Object
Up to about 1 gigabyte
Hyperlink
Up to 2048 characters
Fields properties
Field Property
Purpose/Note or Example
Field size
Format
Input Mask
Default Value
Required
Indexed
field
Sorting records
Click on data field to be sorted
Click on sort buttons on toolbar (Ascending and Descending)
Disadvantages of datasheet data entry
Forms
Creating Forms
Form advantages
Simplifies data entry process
Able to display many entry fields on one
screen
Most commonly used form creation
options
New form options
Description
Design View
Form Wizard
Auto form
Form
layout
Field selection
Style
corner of form
Record navigation control
Action
|<
<
>
>|
>*
Queries
Creating queries
What is query?
Structured request for specific ingomation from
database
Created in Access using New Query
Query created with graphical tools(Query by
example)
Underlying code produced in SQL
Creating a query in design view
From Access database window, select Queries tab,
then click on New
Select Design View
checkbox
Specify criteria
Enter the criteria expression for the desired field in the
query grid
In this example, we want to select all products whose
price is less than$4.75
Viewing SQL
Use View/SQL to see a listing of the SQL statements
Reports
Creating Reports
Using the Report Wizard
From the Access database window, click on