Microsoft Office Access 2016 for Windows



Similar documents
Microsoft Office Excel 2013

Microsoft Office Word 2013

Using Microsoft Outlook 2013 with Zimbra

Creating a Web Site with Publisher 2010

Digital Faxing. University Information Technology Services. Training, Outreach, Learning Technologies & Video Production

Creating a Website with Publisher 2013

SIGNiX: Digital Signature Service

Virtual Owl. Guide for Windows. University Information Technology Services. Training, Outreach, Learning Technologies & Video Production

Microsoft Word Level 3

Using Microsoft Outlook 2010 with Zimbra

Microsoft Excel 2010

Microsoft Excel 2007 Level 2

MICROSOFT ACCESS TABLES

Xpressions Web Assistant

HallPass Instructions for Connecting to your Campus PC Using the ipad

SoftChalk. Level 1. University Information Technology Services. Training, SoftChalk Level Outreach, 1 Learning Technologies and Video Production

Creating Interactive PDF Forms

Creating tables in Microsoft Access 2007

Sync Appointments from the Schedule Certifications Screen

BIGPOND ONLINE STORAGE USER GUIDE Issue August 2005

Database File. Table. Field. Datatype. Value. Department of Computer and Mathematical Sciences

PaperClip. em4 Cloud Client. Setup Guide

For example, you might want to create a folder to collect together all s relating to a particular project or subject.

HOW TO GUIDE MONEY MANAGEMENT

Click on various options: Publications by Wizard Publications by Design Blank Publication

D2L Brightspace Quizzes Respondus LockDown Browser and Respondus Monitor Dashboard

Section 1: Ribbon Customization

Microsoft Access 2007 Module 1

Blackboard Collaborate Classroom in Desire2Learn. Presenters

STATEMENT OF TRANSACTION REPORT ANALYSIS USING EXCEL

Microsoft Word 2011: Create a Table of Contents

Planning and Creating a Custom Database

2015 Securexam User Guide

ProSeries DMS. Getting Started Guide

Microsoft Access 2010 handout

This tutorial provides detailed instructions to help you download and configure Internet Explorer 6.0 for use with Web Commerce application.

Information Technology Services Kennesaw State University

Beginning Microsoft Access

Creating forms in Microsoft Access 2007

Archiving and Managing Your Mailbox

Microsoft Access Basics

Implementing Mission Control in Microsoft Outlook 2010

A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc Mastering Outlook Made Easy for Lawyers CPE Edition v.2.

Mail Merge Creating Mailing Labels 3/23/2011

Setting up a basic database in Access 2003

Remote Desktop Services

Avery Wizard: Using the wizard with Microsoft Word. This is a simple step-by-step guide showing how to use the Avery wizard in word

Getting Started with the ipad

Note: This documentation was written using the Samsung Galaxy S5 and Android version 5.0. Configuration may be slightly different.

Internet Explorer 7. Getting Started The Internet Explorer Window. Tabs NEW! Working with the Tab Row. Microsoft QUICK Source

Access Tutorial 2 Building a Database and Defining Table Relationships

Inking in MS Office 2013

Creating a New Excel Survey

Mail Merge. Course Description. Objectives: Design a Main Document. Design a Data Source. Directories. Merge the Main Document with the Data

warpct.com MS Access 2010 Workbook courseware by WARP! Computer Training

Rev. 06 JAN Document Control User Guide: Using Outlook within Skandocs

Ken Goldberg Database Lab Notes. There are three types of relationships: One-to-One (1:1) One-to-Many (1:N) Many-to-Many (M:N).

Importing Contacts to Outlook

How to Create Your Own Crystal Report

Filter by Selection button. Displays records by degree to which they match the selected record. Click to view advanced filtering options

Microsoft Access Creating Filters and Tables

Text Basics. Introduction

Introduction to Microsoft Access 2003

Use Find & Replace Commands under Home tab to search and replace data.

OUTLOOK 2003: HOW TO GET OUT OF JAIL

Microsoft PowerPoint 2010 Computer Jeopardy Tutorial

Using Excel for Analyzing Survey Questionnaires Jennifer Leahy

Installing Client Profiles 6.0

Produced by Flinders University Centre for Educational ICT. PivotTables Excel 2010

Organizing and Managing

PaperClip. em4 Cloud Client. Manual Setup Guide

Content Author's Reference and Cookbook

IMAP and SMTP Setup in Clients

WorldShip Export Shipment Data

UF Health SharePoint 2010 Introduction to Content Administration

SSL Intercept Mode. Certificate Installation Guide. Revision Warning and Disclaimer

McAfee Endpoint Encryption Reporting Tool

MAG Windows 7 Strong Key Protection Software Update

ClickView Digital Signage User Manual

Content Author's Reference and Cookbook

Instructions for creating a data entry form in Microsoft Excel

Macintosh: Microsoft Outlook Web Access

Visual Dialogue User Guide. Version 6.1

Internet Explorer 7 for Windows XP: Obtaining MIT Certificates

How to Create a PDF Document

How To Connect Your Transactions To Quickbooks Online From Your Bank Or Credit Card Account On A Pc Or Mac Computer Or Ipa Device

LEARNING RESOURCE CENTRE GUIDE TO OFFICE 365

Outlook 2013 ~ Advanced

Microsoft Office 2010

Hands-on Practice. Hands-on Practice. Learning Topics

User Services. Intermediate Microsoft Access. Use the new Microsoft Access. Getting Help. Instructors OBJECTIVES. July 2009

1 of 10 1/31/2014 4:08 PM

Getting Started Guide: Transaction Download for QuickBooks for Windows

A Presentation of TeachUcomp Incorporated. Copyright TeachUcomp, Inc Mastering Outlook Made Easy for Lawyers CPE Edition v.3.

Changing the Default Delivery Location

Downloading RIT Account Analysis Reports into Excel

Excel Reports User Guide

Transcription:

Microsoft Office Access 2016 for Windows Relational Databases & Subforms University Information Technology Services Learning Technologies, Training & Audiovisual Outreach

Copyright 2016 KSU Division of University Information Technology Services This document may be downloaded, printed, or copied for educational use without further permission of the University Information Technology Services Division (UITS), provided the content is not modified and this statement is not removed. Any use not stated above requires the written consent of the UITS Division. The distribution of a copy of this document via the Internet or other electronic medium without the written permission of the KSU - UITS Division is expressly prohibited. Published by Kennesaw State University UITS 2016 The publisher makes no warranties as to the accuracy of the material contained in this document and therefore is not responsible for any damages or liabilities incurred from UITS use. Microsoft product screenshot(s) reprinted with permission from Microsoft Corporation. Microsoft, Microsoft Office, and Microsoft Access are trademarks of the Microsoft Corporation.

University Information Technology Services Microsoft Office: Access 2016 for Windows Relational Databases & Subforms Table of Contents Introduction... 4 Learning Objectives... 4 Relationships and Tables... 5 Using Multiple Tables in the Access Database... 5 Relationships Explained... 6 Relationships and Data Types... 6 How to Create the Relationship... 7 Relationships and Forms... 10 Creating a Form for a Two Table Relationship... 10 Creating a Form with Tabs for a Multi-Table Relationship... 15 Create the Main Form for your Customer Info Table... 16 Additional Help... 21

Introduction Microsoft Access allows people to effectively and efficiently organize data. This document has been developed to show you how to use multiple tables and relational databases in Access 2016. The various sections presented in this document will help you to build a solid knowledge foundation of the software. The Microsoft Access Booklet Series will provide you the necessary knowledge on how to use Microsoft Office Access 2016. Before reading this booklet, it is recommended that you read the following Access 2016 documents on the UITS Documentation Center at http://uits.kennesaw.edu/cdoc: Microsoft Access 2016 Intro to Access Microsoft Access 2016 Intro to Forms Learning Objectives The following objectives are covered in this document: Understanding the concept of relationships as they relate to tables. Knowing how to define data types for relationships. Having the ability to create a relationship. Understanding relationships and forms. Knowing how to create a form for a two table relationship. Knowing how to create a tab form for a multi-table relationship. Revised: 6/29/2016 Page 4 of 21

Relationships and Tables The power of Access is the software s ability to create and maintain multiple tables. Access allows multiple tables to work together thereby giving you strong database management capabilities. Using Multiple Tables in the Access Database Users of Access begin to utilize the full strength of the system when they use multiple tables to manage data. For example, the following are two tables that could be used by a retail store that sells products to customers. Figure 1 - Two Tables It would be ineffective to attempt to include all of the fields presented in Figure 1 in one table. It is much more efficient to create two tables and categorize the various fields within these tables. An effective database used by a business, educational facility, governmental agency, etc. would ultimately have many tables. Page 5 of 21

Relationships Explained When developing a database with multiple tables, it is important to understand relationships. Relationships allow the different tables to communicate with each other. When creating different tables, there must be one field that is common to the different tables. For example, Figure 2 shows that the Customer Number field is common to both tables. Figure 2 - Customer Number in two tables Relationships and Data Types When developing multiple tables, the Data Type for the common field will be defined differently in the various tables. For example, Figure 3 below shows that the Data Type for Customer Number is defined as AutoNumber in the Customer Information table because this table is where the number is created. Notice that this number is also the Primary Key. Figure 3 - Primary Key Page 6 of 21

In the Purchases table, the Customer ID is defined as a Number. Also, notice that it is not defined as the Primary Key. Figure 4 - Customer Number in the Purchases Table How to Create the Relationship The following explains how to create a relationship between two tables in Access. 1. Be sure both tables are closed before attempting. 2. From the Database Tools tab, click Relationships. Figure 5 - Relationships 3. In the Show Table dialogue box, select each table and click Add. Figure 6 - Click Add Page 7 of 21

4. Both of the tables will be added to the Relationships window. Next, click the Close button in the Show Table dialogue box. Figure 7 - Click Close 5. Click to select Customer Number in the Customer Information table. Figure 8 - Customer Number Page 8 of 21

6. Hover your mouse over Customer Number in the Customer Information table and left-click your mouse and hold. Drag over the Customer Number in the Purchases table and release. Figure 9 - Creating the Relationship 7. The Edit Relationships dialogue box will appear. Click to select the box for Enforce Referential Integrity and click the Create button. Figure 10 - Enforce Referential Integrity What happens when you enforce referential integrity? 1. If the record doesn t exist in the primary key field of the primary table, it can t be entered in another related table. 2. The record can t be deleted from the primary table if there is a record that relates in another related table. 3. The primary key number cannot be changed in the primary table if there is a record that relates to it in another related table. Page 9 of 21

8. The relationship will be established. Figure 11 - The Relationship is established 9. Click the Close button to exit the Relationship Tools screen. When prompted, click Yes to save the relationship that you created. Figure 12 - Close Button Relationships and Forms There are many different ways to develop forms when you have relationships among different tables established. The following are some popular design techniques. Creating a Form for a Two Table Relationship The following is an example of how to develop a form for a two table relationship. For example, you may need multiple table forms in the event you have a database that contains more than one table. The tables within the database are Customer Information and Purchases. Figure 13 - Tables to create the form Page 10 of 21

1. Create a form using the Form Design tool for the Customer Information table. Figure 14 - Form for Customer Information Table Note: For more information on creating Forms, refer to the documentation Microsoft Access 2016: Intro to Forms at https://uits.kennesaw.edu/cdoc. 2. On the Design tab, click the More button for additional controls. 3. Click the Subform/Subreport button. Figure 15 - The More Button Figure 16 - Subform/Subreport Page 11 of 21

4. Draw a box on the form for the Purchases table. 5. The Subform Wizard will appear. Click Next. Figure 17 - Purchases Table Form Figure 18 - Click Next Page 12 of 21

6. Click to select the table that you want to place on the form. Figure 19 - Subform Wizard 7. Click the double-arrow button to add all of the fields onto the subform that you are creating. 8. Click the Finish button. Figure 20 - Sub form Arrow Figure 21 - Click Finish Page 13 of 21

9. The Purchases subform will appear on the Customer Information form. Figure 22 Subform 10. You may now enter data in both the form and subform. Figure 23 - Entering Data Page 14 of 21

Creating a Form with Tabs for a Multi-Table Relationship The following explains how to create a form with tabs for a multi-table relationship. Forms with tabs are necessary in the event that you need to enter data into a database with multiple tables. 1. Create the necessary tables for the database. In this example we will need tables for an insurance company database. Figure 24 illustrates a database that has tables for: Customer Information Auto insurance Life insurance Property insurance. Figure 24 - Tables for an Insurance Database 2. Create a relationship for all of the tables in the database shows an example of relationships created for a database for an insurance company. Figure 25 - Relationships for the Database 3. Create forms for all of the tables EXCEPT for the main table. For example, you would create forms for Auto, Property, and Life. Page 15 of 21

Create the Main Form for your Customer Info Table 1. Create a form for the Customer Info table using the Form Design tool. Note: For more information on creating Forms, refer to the documentation Microsoft Access 2016: Intro to Forms at https://uits.kennesaw.edu/cdoc. 2. Apply any color/labels/formatting to your form. 3. On the Design tab, click the Tab Control button. 4. Draw the Tab Control onto the Form. Figure 26 - Tab Control Button Figure 27 - Draw Tab on the form Page 16 of 21

5. To add more tabs, right-click over one of the tabs and click Insert Page from the drop-down menu (See Figure 28). 6. To delete a tab, right-click over one of the tabs and click Delete Page from the drop-down menu (See Figure 28). 7. To rename the tab, click to select the tab. 8. From the Design tab, click Property Sheet. Figure 28 - Insert and Delete Page Figure 29 - Access Property Sheet Page 17 of 21

9. The Property Sheet will open. On the Format tab in the Caption category, enter the name of the tab. Figure 30 - Renaming Tabs 10. From the Design tab, click Add Existing Fields to add the fields onto the tab for this main form. Figure 31 - Add Existing Fields 11. In the Field List window that appears, click Show all tables. Figure 32 - Show all Tables 12. Click the + for the name of the main table containing the fields that you want to add. For this example, you would click the + for Customer Info. Figure 33 - Expanding the Table Page 18 of 21

13. Drag the fields from the Field List onto the tab that you have selected. Figure 34 - Main Tab 14. You are now ready to add the forms that you created earlier to the other tabs. Click to select the tab where you want to add your form. Figure 35 - Select the Tab Page 19 of 21

15. From the Design tab, click More. 16. Select the Subform/Subreport control. Figure 36 - The More Button Figure 37 - Subform/Subreport 17. Draw a box on the form for the selected tab. 18. The Subform Wizard dialogue box will appear. Select the option Use an existing form (See Figure 38). 19. A list of forms in your database will appear. Select the form of your choice (See Figure 38). 20. Click the Finish button. Figure 38 - Subform Wizard Page 20 of 21

21. The Auto Form will be added inside the Tab Control. Use the sizing handles around the form to adjust the size. Figure 39 - Subforms 22. Repeat steps 14 21 to add the remaining subforms. Additional Help For additional support, please contact the KSU Service Desk: KSU Service Desk for Faculty & Staff Phone: 470-578-6999 Email: service@kennesaw.edu Website: http://uits.kennesaw.edu KSU Student Helpdesk Phone: 470-578-3555 Email: studenthelpdesk@kennesaw.edu Website: http://uits.kennesaw.edu Page 21 of 21