1/62 introduction to and using ms access database management and analysis 2009.4. yunho song

62
1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

Upload: benjamin-newton

Post on 04-Jan-2016

212 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

1/62

Introduction to and Using MS Access

Database Management and Analysis

2009.4.

Yunho Song

Page 2: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

2/62

contents

Introduction to and Using MS Access - contents

1. How to install?

2. Getting Started

3. Customize

4. Database Terms

5. Creating a New Database

6. Manage Tables

7. Keys

8. Table Relationships

9. Managing Data

10. Querying a Database

11. Calculated Fields

12. Designing Forms

13. Generating Reports

Page 3: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

3/62

1. How to install?

Introduction to and Using MS Access – How to install?

Page 4: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

4/62

1. How to install?

Introduction to and Using MS Access – How to install?

Page 5: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

5/62

Introduction to and Using MS Access – Getting Started

Microsoft Office Button - performs many of the functions

   The ribbon - panel at the top portion of the document

2. Getting Started

Page 6: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

6/62

Introduction to and Using MS Access – Getting Started

  

The ribbon - additional features

2. Getting Started

Home:  Views, Clipboard, Fonts, Rich Text, Records, Sort & Filter, FindCreate: Tables, Forms, Reports, OtherExternal Data: Import, Export, Collect Data, SharePoint ListsDatabase Tools: Macro, Show/Hide, Analyze, Move Data, Database Tools

Page 7: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

7/62

Introduction to and Using MS Access – Getting Started

  

Quick Access Toolbar - customizable toolbar

2. Getting Started

Page 8: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

8/62

Introduction to and Using MS Access – Getting Started

  

Navigation Pane - displays database objects such as tables, forms, queries, and reports

2. Getting Started

Tabbed Document Window Viewing - opens tables, forms, queries and reports

Page 9: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

9/62

Introduction to and Using MS Access – Customize

  

To access customizable options

3. Customize

Page 10: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

10/62

Introduction to and Using MS Access – Customize

  

Popular - to personalize your work environment

3. Customize

Page 11: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

11/62

Introduction to and Using MS Access – Customize

  

Current Database - to set options

3. Customize

Page 12: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

12/62

Introduction to and Using MS Access – Customize

  

Datasheet - to personalize options in the way the datasheet looks

3. Customize

Page 13: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

13/62

Introduction to and Using MS Access – Customize

  

Object Designers - to customize the options for creating and modifying database objects in Access

3. Customize

Page 14: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

14/62

Introduction to and Using MS Access – Customize

  

Proofing - to change how Access automatically correct and formats the contents of the database and how it indicates errors

3. Customize

Page 15: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

15/62

Introduction to and Using MS Access – Customize

  

Advanced - for advanced customization of Access

3. Customize

Page 16: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

16/62

Introduction to and Using MS Access – Customize

  

Customize - to add features to the Quick Access Toolbar

3. Customize

Page 17: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

17/62

Introduction to and Using MS Access – Database Terms

  

Table - a collection of information arranged in rows and columns

4. Database Terms

Page 18: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

18/62

Introduction to and Using MS Access – Database Terms

  

Query - select records from one or more tables in a database so they can be viewed, analyzed, and sorted on a common datasheet

4. Database Terms

Page 19: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

19/62

Introduction to and Using MS Access – Database Terms

  

Form - a graphical interface that is used to display and edit data

4. Database Terms

Page 20: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

20/62

Introduction to and Using MS Access – Database Terms

  

Report - output of data arranged in the order you specify

4. Database Terms

Page 21: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

21/62

Introduction to and Using MS Access – Create a New Database

  

New Database

5. Create a New Database

Page 22: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

22/62

Introduction to and Using MS Access – Create a Table

  

Design view - view all the fields with the data types and descriptions

6. Create a Table

Page 23: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

23/62

Introduction to and Using MS Access – Create a Table

  

Datasheet view - display the records in a table

6. Create a Table

Page 24: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

24/62

Introduction to and Using MS Access – Create a Table

  

Adding new Fields - New fields can be added in the Datasheet View or in the Design View

6. Create a Table

Page 25: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

25/62

Introduction to and Using MS Access – Create a Table

  

6. Create a Table

Adding new Fields - To add a new field in Design View

Page 26: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

26/62

Introduction to and Using MS Access – Create a Table

  

6. Create a Table

Data types - When you create a new field in a database you should closely match the data type to what will be entered into the field

Text Text, number, or a combination up to 255 characters

MemoSimilar to the text field, can contain text, numbers, or a combination up to 2 GB of data

Number Numbers up to 16 bytes of data

Date/Time Date and Time information

Currency Currency up to 8 bytes and precise to 4 decimal places

AutoNumberAccess creates a unique number for each new record.  This is often the primary key for the table

Yes/No Yes and No, stored as -1 for yes and 0 for no

OLE Object Images, documents, graphs up to 2 GB

Hyperlink Web addresses

Attachment Attachments such as images, spreadsheets, documents, and charts

Page 27: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

27/62

Introduction to and Using MS Access – Create a Table

  

6. Create a Table

Editing Data Types in Fields - define the data types of the tables to most closely match the type of data that will be entered in the field

Page 28: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

28/62

Introduction to and Using MS Access – Create a Table

  

6. Create a Table

Editing Data Types in Fields - To edit the Data Type in the Design View

Page 29: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

29/62

Introduction to and Using MS Access – Manage Tables

  

6. Manage Tables

Delete a Table Rename a Table

Page 30: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

30/62

Introduction to and Using MS Access – Manage Tables

  

6. Manage Tables

Add a Description to a table

Page 31: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

31/62

Introduction to and Using MS Access – Keys

  

7. Keys

Primary Key - The primary key is a unique identifier for a record.  The primary key cannot be the same for two records.  This field can never be blank

Foreign Key - A foreign key is a field or combination of fields that are related to the primary key of another table

Composite Key - A composite key is a primary key that is comprised of two or more fields.  It can also be called a compound or concatenated key

Page 32: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

32/62

Introduction to and Using MS Access – Table Relationships

8. Table Relationships

Creating Table Relationships

Select desired tables

Page 33: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

33/62

Introduction to and Using MS Access – Table Relationships

8. Table Relationships

Creating Table Relationships

Print a Table Relationship

Page 34: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

34/62

Introduction to and Using MS Access – Table Relationships

8. Table Relationships

One-to-One Relationship - between two tables where the primary key in one table and the foreign key in another table are the same 

One-to-Many Relationship - between two tables where the primary key in one table can be duplicated many times in another table

Page 35: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

35/62

Introduction to and Using MS Access – Managing Data

9. Managing Data

Add Records to a Table

Find and replace

Page 36: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

36/62

9. Managing Data

Totals - to add a totals row to your database

Introduction to and Using MS Access – Managing Data

Page 37: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

37/62

9. Managing Data

Sort Records - sort records in a datasheet by a single column or by two adjacent columns

Introduction to and Using MS Access – Managing Data

Page 38: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

38/62

9. Managing Data

Filter - to include only records that you want to display

Introduction to and Using MS Access – Managing Data

Page 39: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

39/62

10. Querying a Database

Query Wizard - to set up a query

Introduction to and Using MS Access – Querying Database

Page 40: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

40/62

10. Querying a Database

Query Wizard - to set up a query

Introduction to and Using MS Access – Querying Database

Page 41: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

41/62

10. Querying a Database

Query Wizard - To switch between tables and queries

Introduction to and Using MS Access – Querying Database

Page 42: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

42/62

10. Querying a Database

Query Design Feature - design a query with the  Query Design Button

Introduction to and Using MS Access – Querying Database

Page 43: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

43/62

10. Querying a Database

Query Design Feature - design a query with the  Query Design Button

Introduction to and Using MS Access – Querying Database

Page 44: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

44/62

10. Querying a Database

Query Design Feature - run

Introduction to and Using MS Access – Querying Database

Page 45: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

45/62

11. Calculated Fields

Expressions - combination of functions, field names, numbers, text, and the operators listed above

Introduction to and Using MS Access – Calculated Fields

Page 46: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

46/62

11. Calculated Fields

Expressions - builder

Introduction to and Using MS Access – Calculated Fields

Zoom - to view an entire expression

Page 47: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

47/62

12. Designing Forms

Create a Form - create a form from a table or a query

Introduction to and Using MS Access – Designing Forms

Page 48: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

48/62

12. Designing Forms

Create a Form - To change the colors and fonts

Introduction to and Using MS Access – Designing Forms

Preview the Form

Page 49: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

49/62

12. Designing Forms

Form Wizard - create forms with the help of the Form Wizard

Introduction to and Using MS Access – Designing Forms

Form Wizard - choose the field

Page 50: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

50/62

12. Designing Forms

Form Wizard - choose the layout

Introduction to and Using MS Access – Designing Forms

Form Wizard - choose the style

Page 51: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

51/62

12. Designing Forms

Form Wizard – create a title

Introduction to and Using MS Access – Designing Forms

Form Wizard - result

Page 52: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

52/62

13. Generating Reports

Create a report

Introduction to and Using MS Access – Generating Reports

Create a report - add existing fields

Page 53: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

53/62

13. Generating Reports

Report Wizard - create a report using the report wizard

Introduction to and Using MS Access – Generating Reports

Report Wizard – choose the fields

Page 54: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

54/62

13. Generating Reports

Report Wizard - Choose the sort order

Introduction to and Using MS Access – Generating Reports

Report Wizard - Chose the layout

Page 55: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

55/62

13. Generating Reports

Report Wizard - Choose a style

Introduction to and Using MS Access – Generating Reports

Report Wizard - Create a title

Page 56: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

56/62

13. Generating Reports

Report Wizard - output

Introduction to and Using MS Access – Generating Reports

Page 57: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

57/62

14.Visual Basic

To create a more complex database, you would have to write codeMicrosoft Access ships with a programming environment named Microsoft Visual Basic

Introduction to and Using MS Access –Visual Basic

To access Visual Basic

Page 58: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

58/62

14.Visual Basic

Introduction to and Using MS Access –Visual Basic

Project Explorer - displays the coding objects available for your database

Visual Basic Child Windows 

Properties - every object and item of your database has characteristics

Page 59: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

59/62

14.Visual Basic

Introduction to and Using MS Access –Visual Basic

Code Editor - the area where you will mostly be working  

Combo Box - to select a particular object and access its events, actions that the object can launch

Page 60: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

60/62

14.Visual Basic

Introduction to and Using MS Access –Visual Basic

Code Editor  

Page 61: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

61/62

14.Visual Basic

Introduction to and Using MS Access –Visual Basic

Immediate view - The Immediate window is used to test code when necessary.

Page 62: 1/62 Introduction to and Using MS Access Database Management and Analysis 2009.4. Yunho Song

62/62

Thank You!!