Title: Access
1Access
- Jianhua Yang
- Department of Math and Computer Science
- Bennett College
2Goals
- Know what Access is for.
- Create a database and a table
- How to create and use a form
- Operation on a database
- Work with queries
31. Introduction to Access
- Access and database
- Database Management System
- The database window
- Database, Table, Filed
4What is Access?
- Access is the database management system in
Microsoft office. - It provides ways to store, search, sort, query,
and report on the data in the database.
5What is Database?
- A database is an organized collection of related
data. - To maintain simple databases kept by hand
requires time and labor.
6Access database
- It is the electronic equivalent of a manual
database. - It allows you organize and maintain the data
electronically.
7What is a Database Management System?
- It provides you the ways to operate on database.
8How is a Database Organized?
- The access uses the database window to maintain
database objects in one file. - The database window contains an objects bar with
a button for each type of object. - In access, data is organized as tables.
9Database Objects
- Database Objects are the tools you need to store,
maintain, search, analyze, and report on the data
in your database. - We have
- Table
- Query
- Form
- Report
10Table
- It is also called datasheet.
- Each row in a table represents one record in a
database. - With Table button, you can create a new table, or
modify an existing table.
11Query
- It is a structured way to tell Access to retrieve
data that meets certain criteria from one or more
database tables. - The Query button can
- Display a list of all queries in the current
database - Open an existing query, and modify its design
- Create a new query.
12Form
- It is a formatted data entry window that lets you
enter, display, and edit data. - The Forms button can
- Displays a list of all forms in the current
database - Open existing form, and modify its design
- Or create a new form.
13Report
- It is a formatted way to display information
retrieved from the database. - The Report button can
- Display a list of all reports in the current
database - Preview the report, modify its design
- Or create a new report.
14How is a Table structured?
- A table is a grid of rows and columns.
- Each row contains one record.
- Each record is broken into some fields.
- Each field has its name and contents.
- Each field has its data type.
15How are Access Tables Related?
- Different tables are related by one or more
common fields.
16Guidelines to design a database
- Gather all your sources of information.
- Determine what types of information you will need
to locate or report. - Decide how much flexibility you need in locating
and reporting the data. - Write down everything you want to accomplish with
your database. - Break down information into its smallest
practical units.
17Exercise
- Show students the above objects.
182. Explore a Database
- Start Access and Open a database
- Explore a database
- Print a Database Object
19Start Access and Open a database
- Show the students how to do.
20Explore a Database
- Using the sample databases Northwind to show
the students.
21Print a Database Object
- Show the students how to do it.
223. Getting Started with Access
- Open an Existing Database
- Enter Data
231) Open Existing Database
- Using file 02Goodstuff to show the students how
to open an existing database. (P369)
242) Enter Data(P369-371)
- Enter data for a table
- Enter invalid data
253) Exercise
- Do the exercise at Page 373.
264. Work with Table Design
- Modify a table design
- Change Column widths
- Summary of data entry aids
271) Modify a table design
- With datasheet view we can enter data with
design view we can modify table structure. - In design view, we can control
- 1. field names
- 2. type of data
- 3. acceptable entries
28Exercise
292) Make Required Fields
- When a filed is required, Access does not allow
the field to remain empty during data entry. - Page 376
303) Create a Lookup list
- How to create a lookup list.
- Page 376
314) Summary of Data entry aids
- AutoNumber Data type
- Status Bar Messages
- Formats
- Input Mask
- Validation Rules and Validation Text
- Default Values
- Required Fields
325. Create a database and table
- Create a database
- Set file format option
- Create a table using table wizard
- Modify the table design
331) Create a Database
- Start a new database
- It will contain objects
- Tables
- Queries
- Forms
- Reports
- Show it (P383)
342)Set file format option
- Default format is Access 2000.
- You can change it to Access 2002-2003.
- Show the students how to do it (p384).
353) Convert database format
- Convert format 2000 to 2003.
- Can you convert format 2003 to 2000?
- Show the students how to do it (p385).
364) Create a table using the table wizard
- Create a table with fields names, addresses, and
home telephone number. - Select fields for the table
- Rename fields
- Name the table and set a primary key
- Show the students how to do (p385-387)
375) Modify the table design
- Show the students how to do it (p389).
386) Exercise
396. Create and use a Form
- 1) Create a Form using AutoForm
- 2) Add a record in Form View
- 3) Modify a Form.
401) Create a Form using AutoForm
- What is a Form of Access
- Another data entry aid
- Can be used to enter, display, and edit data
- If you enter data in a Form, you are also adding
it to the table - The table shows all data at once the form shows
data one record at a time.
41Exercise
- Show the students how to create a form by
following the book at P392.
422) Add a record in Form View
- Add a record in a form view
- Verify if the record has been added to the table.
433) Modify a Form
- Modify the forms title bar
- Modify the forms background
- Delete a field from a form
- Reposition fields on a form.
44Modify the forms title bar
- Using forms property to do it.
- Show the students how to do (P394).
45Modify the forms background
- By using the design view button
- Show the students (P394-395).
46Delete a Field from a form
- At design view, select a field, and to delete it
by pressing delete key. - It does not affect the table fields.
- Show the students (p395).
47Reposition fields on a Form
- Rearrange the form appearance.
- Change window size
- Change each field size
- Change font size, color, and
- Show the students how to do (P395-396)
48Exercise P397-398
- Do the exercise together with the students.
497. Filter and Sort a Database
- 1) Filter by Selection
- 2) Filter by Form
- 3) Advanced Filter/Sort.
501) Filter by Selection
- A filter lets you select records in a table or
form based on criteria you specify. - Show how to set filter
- Show how to remove a filter.
512) Filter by Form
- Using the function Filter by form
- Entering the criteria you want to use to find
matching records. - Show the students how to do.
523) Advanced filter (optional)
- Show the students how to do (P401-P403).
538. Work with Queries
- 1) Add Records in form view
- 2) Create a Query
- 3) Copy a Query
- 4) Edit a Query.
541) Add records in Form View
- Add two records in Form View as the book does.
(P405)
552) Create a Query
- A Query lets you retrieve data from one or more
tables and display it in a new table. - Start a new query
- Select tables for the Query
- Complete the Query.
- Example (P406-407).
563) Copy a Query
- Very similar to copy a file.
- Show the students how to do.
574) Edit a Query
- We can edit the Query copied.
- Show the students how to do.
58Exercise
- Do the exercise at Page 411.
599. Work with Reports
- 1) Create a Report using AutoReport
- 2) Create a Report using the Report Wizzard
- 3) Change the Report title
- 4) Resize and Move Fields.
601) Create a Report
- Using AutoReport
- Using the Report Wizzard
61Report
- Access Reports offer a way to use the information
in tables and queries and format it for printing.
62Using AutoReport
- Show the students how to create a Report.(P414)
63Using the Report Wizard
- Show the students how to do it.
64Change the report title.
- Go to Report design first
- And then change it, and the fields.
- Resize, reposition.
65Exercise
66Summary
- Using Access to process data
- Creating database, table
- Creating and using a Form
- Using queries
- Outputting reports