Microsoft Access Lesson 3

Slides:



Advertisements
Similar presentations
Access Manual 4 By Elham S.Khorasani Ismail Guneydas Dhawala Kovuri.
Advertisements

Microsoft Access.
Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
1 After completing this lesson, you will be able to: Create a database. Create a table using the Table Wizard. Create and modify a table in Design view.
Access Lesson 2 Creating a Database
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
SUNY Morrisville-Norwich Campus-Week 10 CITA 130 Advanced Computer Applications II Spring 2005 Prof. Tom Smith.
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
Querying a Database Microsoft Office Access 2003.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
1 Computing for Todays Lecture 16 Yumei Huo Fall 2006.
Management Information Systems MS Access 2003 By: Mr. Imdadullah Lecturer, Department of M.I.S. College of Business Administration, KSU.
Access Lesson 4 Creating and Modifying Forms
Lesson 32: Designing a Relational Database. 2 Lesson Objectives After studying this lesson, you will be able to:  Identify and apply principles for good.
Define Table Relationships—1 of 3 One of the most powerful features of a relational database management system, such as Access, is its ability to define.
Microsoft ® Office Access ® 2007 Training Build a database III: Build relationships for a new Access database ICT Staff Development presents:
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
Chapter 3 Maintaining a Database
XP New Perspectives on Microsoft Access 2002 Tutorial 41 Microsoft Access 2002 Tutorial 4 – Creating Forms and Reports.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
1 Microsoft Access 2002 Tutorial 3 – Querying a Database.
Primary & Foreign Keys. PK & FK 1.Primary key is required 2.The PK must be unique 3.If the primary key from one table is related to a field in another.
Microsoft Access – Tutorial 3
Viewing Tip: While viewing this presentation in your browser, select Browse, Full Screen. Then, when you want to pause the show, Right Click and select.
XP Chapter 2 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Building The Database Chapter 2 “It is only the farmer.
1 Access Lesson 4 Creating and Modifying Forms Microsoft Office 2010 Introductory.
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T6: Basic Skills and Tools Using.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.
IE 423 – Design of Decision Support Systems Database development – Relationships and Queries.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 9 1 Microsoft Office Access 2003 Tutorial 9 – Using Action Queries, and Defining Table Relationships.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 9 – Building Links,
Office Management Tools II Ms Saima Gul.  When you create your tables, you should assign each table a primary key—one or more fields whose contents are.
Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T6: Basic Skills and Tools Using Access 2010 Business Driven Technology.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
Microsoft Access Intro Class 6 Relationships.
® Microsoft Access 2010 Tutorial 9 Using Action Queries and Advanced Table Relationships.
Tutorial 9 Using Action Queries and Advanced Table Relationships.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Creating Related Tables Creating Related Tables Determining.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T6 Basic Skills Using Access.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Database Processing with Microsoft Access Appendix DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Microsoft Access Lesson 2 Lexington Technology Center February 13, 2003 Bob Herring On the Web at
Build a database III: Build relationships for a new Access database Overview: You can relate This course teaches you how to build relationships between.
CS 281 – Fall 2015 Lab 4 Parametric Query and Forms in MS Access.
Exploring Office Grauer and Barber 1 One-to-Many Relationships: Subforms and Multiple-Table Queries(Wk7)
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
© 2001 ComputerPREP, Inc. All rights reserved. Access 2000: Module II.
Modify Tables and FieldsModify Tables and Fields Lesson 4 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
Microsoft Access Lesson 5 Lexington Technology Center February 25, 2003 Bob Herring On the Web at
CS 281 – Fall 2010 Lab 4 Parametric Query and Forms in MS Access.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 4 1 Microsoft Office Access 2003 Tutorial 4 – Creating Forms and Reports.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Access Tutorial 2 Building a Database and Defining Table Relationships
Relationships While we are on the subject of Relationships, let’s take a quick look at them.
Presentation transcript:

Microsoft Access Lesson 3 Lexington Technology Center February 18, 2003 Bob Herring On the Web at www.lexington1.net/AdultEd/computer/microsoft_access.htm

Review of Thursday’s Lesson Access Lesson 3 Review of Thursday’s Lesson Template Databases Database Wizard Switchboard Forms Forms and Controls Reports Database Window 2

Access Lesson 3 Relationships Tables can be related if they have a field in common. Access uses the relationship to create information by matching the fields and reporting the results. There are 3 types of relationships: One-to-many: Each record in the primary table can be associated with many records in the related table One-to-one: Each record in the primary table can be associated with only one record in the related table Many-to-many: More than one record in the primary table can be associated with many records in the related table 3

Relationships in Access Access Lesson 3 Relationships in Access The table on the “one” side of the relationship is called the parent table. The other table is called the child table. How the 3 types of relationships are created in Access: One-to-many: The common field in the parent table is called the primary key, and the related field in the child table is called the foreign key. One-to-one: The common fields are both primary keys. Many-to-many: Ordinarily not possible, but in Access two one-to- many relationships can be joined to create this kind of relationship. 4

One-to-Many Relationships Access Lesson 3 One-to-Many Relationships In this example, one category can encompass many products Child Table Foreign Key Parent Table Primary Key Relationship Line 5

One-to-One Relationships Access Lesson 3 One-to-One Relationships These two tables have a one-to-one relationship because they concern the same subject: employees 6

Many-to-Many Relationships Access Lesson 3 Many-to-Many Relationships Since many orders might call for many products, a junction table is used to avoid violating referential integrity. Junction Table 7

Referential Integrity Access Lesson 3 Referential Integrity Optional series of rules that guarantees that relationships will be valid. Every record in a child table (the “many” side) must have one and only one record in the parent table (the “one” side) No child record can be entered without a parent No parent record can be deleted if it still has children No child record’s foreign key can be changed without a match in the parent table No parent table’s primary key can be changed if there are child records 8

Referential Integrity, Continued Access Lesson 3 Referential Integrity, Continued What you need to enforce referential integrity in Access: The matching field in the parent table must be the primary key Relating fields must be the same data type Both tables must be in the same database -- OR, if using linking fields, both tables must be in Access and the linked table’s database must be open Referential integrity is indicated by 1 -  on the relationship line Referential Integrity Enforced 9

Referential Integrity, Continued Access Lesson 3 Referential Integrity, Continued Referential integrity is set by editing the relationship Right-click the relationship line and select Edit Relationship Click the “Enforce Referential Integrity” check box Enforce Referential Integrity Edit Relationship 10

Referential Integrity, Continued Access Lesson 3 Referential Integrity, Continued If referential integrity is selected, you can also choose to have Access automatically update or delete records Cascade Update and Cascade Delete maintain referential integrity by changing child tables to match changes in the parent table Beware of Cascade Delete!! This could lead to loss of data! Cascade Update has no effect if you are using a primary key since you cannot change an autonumber Cascade Update Cascade Delete 11

Access Lesson 3 Joins A join is a control that tells Access which records to select when running a query. Inner joins are the most common. Outer joins include all records from one of the tables and records from the other when the joined fields match. Left Right Inner Join Left Outer Join Right Outer Join 12

Address Book Relationships Access Lesson 3 Address Book Relationships 13

Asset Tracking Relationships Access Lesson 3 Asset Tracking Relationships 14

Contact Management Relationships Access Lesson 3 Contact Management Relationships 15

Event Management Relationships Access Lesson 3 Event Management Relationships 16

Expenses Relationships Access Lesson 3 Expenses Relationships 17

Students and Classes Relationships Access Lesson 3 Students and Classes Relationships 18

Inventory Control Relationships Access Lesson 3 Inventory Control Relationships 19

Access Lesson 3 Ledger Relationships 20

Resource Scheduling Relationships Access Lesson 3 Resource Scheduling Relationships 21

Time and Billing Relationships Access Lesson 3 Time and Billing Relationships 22

Membership Relationships Access Lesson 3 Membership Relationships 23

Order Entry Relationships Access Lesson 3 Order Entry Relationships 24

Book Collection Relationships Access Lesson 3 Book Collection Relationships 25

Music Collection Relationships Access Lesson 3 Music Collection Relationships 26

Access Lesson 3 Form Wizard In the Northwind database, select the “Forms” tab Click the “New” button 27

Access Lesson 3 Form Wizard In the “New Form” dialog box, click “Form Wizard” Choose the Products table to begin, then click “OK” 28

Wizard, Step 2 -- Data Fields Access Lesson 3 Wizard, Step 2 -- Data Fields Step 2 is to choose fields from the available tables and queries Click the right arrow to select the desired fields, or Click the double right arrow to select all 29

Choosing Fields for a Form Access Lesson 3 Choosing Fields for a Form Select “ProductName”, “SupplierID”, “UnitsinStock”, and “Discontinued” Choose “Next” 30

Wizard, Step 3 -- Layout Style Access Lesson 3 Wizard, Step 3 -- Layout Style In Step 3, select a layout style for the form Click through the four choices to preview the different styles Click “Next” Columnar Tabular 31

Wizard, Step 3 -- Layout Style Access Lesson 3 Wizard, Step 3 -- Layout Style In Step 3, select a layout style for the form Click through the four choices to preview the different styles Click Next Datasheet Justified 32

Wizard, Step 4 -- Background Style Access Lesson 3 Wizard, Step 4 -- Background Style In Step 4, select a background style for the form Click through the choices to preview the different styles 33

Access Lesson 3 Wizard, Step 5 -- Finish To finish the form, give it a name and click “Finish” Click the radio button to open the form after creating it Open the Form 34

Automatic Form in Action Access Lesson 3 Automatic Form in Action The new form displays a portion of the information in the table Forms are two-way -- they display information, but also guide data entry 35

Access Lesson 3 Adding a New Product Click the “New Record” button Notice that the “Supplier” field is lit -- this is referential integrity in action -- every product must have a supplier! 36

Access Lesson 3 Adding a New Product After choosing a supplier, enter the name of the new product Enter the number of units in stock Data entered in the form is immediately saved in the database 37

Access Lesson 3 Review Relationships Referential Integrity Joins Template Database Relationships Automatic Forms 38