ms access tutorial mgmt 683 j. rees. introduction ms access is a relational database management...

24
MS Access Tutorial MGMT 683 J. Rees

Upload: joanna-merry-rodgers

Post on 24-Dec-2015

214 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

MS Access Tutorial

MGMT 683

J. Rees

Page 2: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Introduction

• MS Access is a relational database management system (RDBMS)

• Other PC-based RDMBS include:– MS FoxPro– Borland dBase

• “Industrial-strength” RDBMS include– Oracle– MS SQL Server– IBM DB2– Informix

Page 3: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Getting Started

• Open MS Access (Under Microsoft Office 2003 heading)

• Open a New Database

Page 4: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Select “Blank Database”

Page 5: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Name your database MyShop.mdb

Now click “Create.” Everything you create for this database will be saved as an *.mdb file.

Page 6: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

MS Access Functionality

• Tables– Store Data

• Queries– Manipulate Data

• Forms– Make data entry and display easier

• Reports– Provides information from database to users

in easy-to-understand format

Page 7: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Business Example

Your sister has started her own home-décor shop. She sells items such as candles, pictures and knick-knacks. She wishes to track the items in her inventory, sales and customer information. You agree to assist her in setting up a simple MS Access database that will track the appropriate information.

Page 8: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Business Example, Continued

You identify that three tables should be created:Product Table containing the product number, product name, product description, product price, and product on hand.Sale Table containing the sale number, sale date, the product sold and the customer.Customer Table containing the customer number, customer last name, customer first name, phone number, address and notes about customer preferences (notify if a Yankee Candle Company candle comes in, etc.)

Page 9: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Creating Tables

Double click ‘Create table in Design view’

Page 10: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Creating the Product Table

Page 11: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Enter the table information

Next: Create the primary key and save your table

Page 12: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Creating Tables

• Create the Sales and Customer Tables

• Use AutoNumber for the Sales Number and Customer Number

• Remember to set the primary key and save your tables

Page 13: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Entering Data

Enter the following data into each of your tables:

Page 14: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Entering Data, Continued

Page 15: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Relationships

Page 16: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Select Tables to be Linked

Page 17: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Link the three tables together

Page 18: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Queries

• Queries allow data to be manipulated– What were the total

sales today?– How many of my

customers come from out of town?

Page 19: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

• Run this query• Create query to determine customers who do not live in Lafayette

Page 20: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Forms

• Provide a user-friendly interface to the data.

• Control over user’s additions and modifications to the data.

• Forms (like queries & reports) do not contain data. Data is always saved in tables.

Page 21: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Create a new form using wizard

Page 22: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Create the Product Form

Page 23: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Select fields to appear on your form

Page 24: MS Access Tutorial MGMT 683 J. Rees. Introduction MS Access is a relational database management system (RDBMS) Other PC-based RDMBS include: –MS FoxPro

Reports

• Reports display the output of tables, forms, and/or queries in a formatted manner.

• Create reports for each query using the Report Wizard