Exploring Office 2003 - Grauer and Barber 1 One-to-Many Relationships: Subforms and Multiple-Table Queries(Wk7)

Slides:



Advertisements
Similar presentations
Information Systems Technology Ross Malaga B Copyright © 2005 Prentice Hall, Inc. B-1 WORKING WITH DATABASES.
Advertisements

Exploring Microsoft Access 2003 Chapter 5 One-to-Many Relationships : Subforms and Multiple Table Queries.
Exploring Word Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4: Advanced Features: Tables, Styles, and Sections.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Mark Dixon Page 1 05 – Database Design: Sub-forms.
Exploring Microsoft Access 2003 Chapter 6 Many-to-Many Relationships: A More Complex System.
Exploring Office Grauer and Barber 1 Tables and Forms: Properties, Views, and Wizards(Wk3)
Exploring Microsoft Access 2003 Chapter 1 Introduction to Microsoft Access: What Is A Database?
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
Exploring Office Grauer and Barber 1 Creating More Powerful Applications: Introduction to VBA(Wk9)
BA271 Week 7 Lecture Building the database Dave Sullivan.
Committed to Shaping the Next Generation of IT Experts. Chapter 4- Proficiency: Robert Grauer and Maryann Barber Exploring Microsoft Access 2003.
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 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Exploring Office Grauer and Barber 1 Information From the Database: Reports and Queries(Wk4)
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
Microsoft Access Lesson 3
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
1 Microsoft Access 2002 Tutorial 3 – Querying a Database.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
© 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 4 – Creating New.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Copyright © 2008 Pearson Prentice Hall. All rights reserved.1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational.
Exploring Office 2003 Vol 1 2/e - Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 1- Introduction to Access: What is.
Exploring Office Grauer and Barber 1 Introduction to Access: What is a Database?(Wk1)
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Exploring Microsoft Access Chapter 4 Relational Databases, External Data, Charts, and the Switchboard.
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.
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
® Microsoft Office 2010 Access Tutorial 2 Building a Database and Defining Table Relationships.
Exploring Microsoft Access 97 Chapter 1 Introduction to Microsoft Access: What Is A Database? Office graphic copyright by Microsoft Corp.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 9 1 Microsoft Office Access 2003 Tutorial 9 – Using Action Queries, and Defining Table Relationships.
Exploring Office Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 3 - Information From the Database: Reports.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
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 Office 2013 Access Creating a Database.
Microsoft Access 2013 Design and Implement Powerful Relational Databases Chapter 6.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Creating Related Tables Creating Related Tables Determining.
Exploring Microsoft Access Chapter 6 Many-to-Many Relationships: A More Complex System.
1 Committed to Shaping the Next Generation of IT Experts. Chapter 1- Introduction to Access: What is a Database? Robert Grauer and Maryann Barber Exploring.
Unit 5, Lesson 1 Working with Databases. Objectives Identify the parts of the Access screen. Identify the parts of the Access screen. Understand the purpose.
McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T6 Basic Skills Using Access.
1 Database Systems Introduction to Microsoft Access Part 2.
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.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
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.
Exploring Office Grauer and Barber 1 Committed to Shaping the Next Generation of IT Experts. Chapter 4- Proficiency: Relational Databases, Pivot.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
Pasewark & Pasewark Microsoft Office 2003: Introductory 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Chapter 1 Introduction to Database. Database Concept Field: a basic data element or attribute of an object Record: a set of fields Table: a set of records.
Chapter 4 Relational Database, Pivot Charts, and Switchboard.
Exploring Microsoft Access Chapter 5 One-to-Many Relationships: Subforms and Multiple Table Queries.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Exploring Microsoft Access 2003
Exploring Microsoft Access 2003
Microsoft Office Illustrated Fundamentals
Exploring Microsoft Access 2003
Exploring Microsoft Access 2003
Relationships While we are on the subject of Relationships, let’s take a quick look at them.
Presentation transcript:

Exploring Office Grauer and Barber 1 One-to-Many Relationships: Subforms and Multiple-Table Queries(Wk7)

Exploring Office Grauer and Barber 2 Distinguish between primary and foreign keys Define referential integrity Use the Relationships Window to create a one- to-many relationship Explain how AutoNumber simplifies data entry Objectives

Exploring Office Grauer and Barber 3 Distinguish between a main form and a subform Create a report based on a multi-table query Create a main form with linked subforms Objectives (continued)

Exploring Office Grauer and Barber 4 Case Study: Evergreen Flying Club The case requires students to create a database that includes: Three tables: airports, members, and hangars Two one-to-many relationships A switchboard, an About form and a relationship diagram

Exploring Office Grauer and Barber 5 Relationships Window CustomerID is foreign key in Loans table CustomerID is primary key in Customers table Relationships line Enforce Referential Integrity

Exploring Office Grauer and Barber 6 Referential Integrity Access automatically implements a form of data validation during data entry Can enter a record in the “one” table, but not in the “many” table if record contains an invalid value for the foreign key This ensures that related tables are consistent with one another

Exploring Office Grauer and Barber 7 Referential Integrity (continued) Delete Record button Click + sign to display related records Cannot delete Customer without first deleting related Loan

Exploring Office Grauer and Barber 8 Hands-on Exercise 1 Title of Exercise: One-to-Many Relationships Objective: to create a one-to-many relationship between existing tables; demonstrate referential integrity between the related tables  Input file: National Bank  Output file: National Bank (modified)

Exploring Office Grauer and Barber 9 Subforms Subform is a form within a form Main form would be based on primary table, while subform is based on related table Use Subform Wizard Can be created on main form or can be dragged from a separate form

Exploring Office Grauer and Barber 10 Subforms (continued) Status bar for Customers form Customer C0001 Loans for Customer C0001 Status bar for Loans form

Exploring Office Grauer and Barber 11 Form Wizard (1 of 4) Select the Customers table Select >> to add all records to the form

Exploring Office Grauer and Barber 12 Form Wizard (2 of 4) Select the Loans table for the subform Select >> to add all records to the form

Exploring Office Grauer and Barber 13 Form Wizard (3 of 4) Choose to view the records by customer

Exploring Office Grauer and Barber 14 Form Wizard (4 of 4) The form and subform are saved as separate objects

Exploring Office Grauer and Barber 15 Hands-on Exercise 2 Title of Exercise: Creating a Subform Objective: to create a subform that displays many records; move and size controls in a form; enter data in a subform  Input file: National Bank (from Exercise 1)  Output file: National Bank (modified)

Exploring Office Grauer and Barber 16 Multiple Table Queries Query information from two tables Create a select query using both tables Query window displays selected fields of each table

Exploring Office Grauer and Barber 17 Multiple Table Queries Join line Table row Criteria for query

Exploring Office Grauer and Barber 18 Hands-on Exercise 3 Title of Exercise: Queries and Reports Objective: to create a query that relates two tables to each other; base a report on that query; use the query to update the records  Input file: National Bank (from Exercise 2)  Output file: National Bank (modified)

Exploring Office Grauer and Barber 19 Multiple Subforms A main table can have multiple levels of subforms Useful for displaying a one-to-many relationship within a one-to-many relationship

Exploring Office Grauer and Barber 20 Multiple Subforms (continued) Customer C0005 Loan L0003 for Customer C0005 Payments for Loan L0003

Exploring Office Grauer and Barber 21 Hands-on Exercise 4 Title of Exercise: Linked Subforms Objective: to create a main form with two levels of subforms; display a subform in Form view or Datasheet view  Input file: National Bank (from Exercise 3)  Output file: National Bank (modified)

Exploring Office Grauer and Barber 22 Access database may contain multiple tables Each table has a primary key which is the foreign key of a related table Relationships window is used to create one-to-many relationships AutoNumber field assigns next number to primary key of a new record Referential integrity ensures consistency between related tables Summary

Exploring Office Grauer and Barber 23 Summary (continued) Subform is a form within a form A main form can have multiple subforms Select query can include fields from several tables Results of a query are displayed in a dynaset Tables can be added at any time without disturbing existing data

Exploring Office Grauer and Barber 24 End-of-chapter Exercises Multiple Choice Practice With Access  Exercise 1 – Understanding Database Design  Exercise 2 – Widgets of America  Exercise 3 – Expanding National Bank  Exercise 4 – National Bank Customer List  Exercise 5 – Return to National Bank  Exercise 6 – Turkeys to Go Restaurants  Exercise 7 – Turkeys to Go Switchboard

Exploring Office Grauer and Barber 25 End-of-chapter Exercises (continued) Practice With Access (continued)  Exercise 8 – The Richards Company  Exercise 9 – The Richards Company Switchboard Additional Mini Cases  University Apartments  The Automobile Dealership

Exploring Office Grauer and Barber 26 Questions?