Database Applications – Microsoft Access Lesson 2 Modifying a Table and Creating a Form 45 slides in presentation Accessibility check 9/14.

Slides:



Advertisements
Similar presentations
Database Basics. What is Access? Database management system Computer-based equivalent of a manual database Makes it easy to organize and update information.
Advertisements

Copyright © 2008 Pearson Prentice Hall. All rights reserved Committed to Shaping the Next Generation of IT Experts. Exploring Microsoft Office Access.
Access Lesson 2 Creating a Database
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
Creating And Maintaining A Database. 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of.
FIRST COURSE Access Tutorial 2 Building a Database and Defining Table Relationships.
With Microsoft Access 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 3 Maintaining a Database Using the Design and Update Features of Access.
Advanced Tables Lesson 9. Objectives Creating a Custom Table When a table template doesn’t suit your needs, you can create a custom table in Design view.
ACCESS CHAPTER 1. OBJECTIVES Tables Queries Forms Reports Primary and Foreign Keys Relationship.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
Access Lesson 2 Creating a Database
Unit J: Creating a Database Microsoft Office Illustrated Fundamentals.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
© 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.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
Access Tutorial 2 Building a Database and Defining Table Relationships
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
Database Applications – Microsoft Access Lesson 6A Designing Custom Forms Updated F13 24 slides in presentation 1.
Microsoft Access – Tutorial 2 Designing Databases In this tutorial, we will create a new database create a new table import tables from an existing database.
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 Access 2000 Presentation 2 Creating Databases Part I (Creating Tables)
XP New Perspectives on Microsoft Access 2002 Tutorial 21 Microsoft Access Tutorial 2 – Creating And Maintaining A Database.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Database Applications – Microsoft Access Lesson 3 Creating and Modifying Forms and Reports Updated 09/13 35 slides in presentation.
Key Applications Module Lesson 21 — Access Essentials
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
Access Chapter 2: Relational Database Objectives Design data Create tables Understand table relationships Understand data types, key, & field properties.
Computer Literacy BASICS: A Comprehensive Guide to IC 3, 5 th Edition Lesson 23 Getting Started with Access Essentials 1 Morrison / Wells / Ruffolo.
® 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.
Database Applications – Microsoft Access Lesson 1 Introduction 26 Slides in Presentation Updated 8/12.
WHAT IS A DATABASE? A DATABASE IS A COLLECTION OF DATA RELATED TO A PARTICULAR TOPIC OR PURPOSE OR TO PUT IT SIMPLY A GENERAL PURPOSE CONTAINER FOR STORING.
McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T6 Basic Skills Using Access.
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.
A Skills Approach Access 2010 Working with Tables © 2012 The McGraw-Hill Companies, Inc. All rights reserved Chapter 2.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 3 BACKNEXTEND 3-1 LINKS TO OBJECTIVES Modify a Table – Add, Delete, Move Fields Modify a Table.
Microsoft Access. Microsoft access is a database programs that allows you to store retrieve, analyze and print information. Companies use databases for.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
Database Applications – Microsoft Access Lesson 4 Working with Queries 36 Slides in Presentation.
Database Applications – Microsoft Access Lesson 7 Designing Custom Reports Updated 11/13 27 Slides in Presentation.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Access 2003 Lab 2 Modifying a Table and Creating.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
1 11 Exploring Microsoft Office Access 2007 Chapter 6 Data Protection.
Lesson 4.  After a table has been created, you may need to modify it. You can make many changes to a table—or other database object—using its property.
Work with Tables and Database Records Lesson 3. NAVIGATING AMONG RECORDS Access users who prefer using the keyboard to navigate records can press keys.
Pasewark & Pasewark 1 Access Lesson 2 Creating a Database Microsoft Office 2007: Introductory.
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.
Getting Started in Access 1 Using an existing Database Database Window Table Design View Parts of a Table Views in Access Navigating in Access Entering.
COMPUTER SKILLS MS-ACCESS. Introduction Access is a piece of software known as a database management system. At its most basic level, it can be used to.
To play, start slide show and click on circle Access 1 Access 2 Access 3 Access 4 Access Access
Access Tutorial 2 Building a Database and Defining Table Relationships
GO! with Microsoft Office 2016
and Defining Table Relationships
GO! with Microsoft Access 2016
Database Applications – Microsoft Access
Database Applications – Microsoft Access
Access Lesson 2 Creating a Database
Database Applications – Microsoft Access
Microsoft Office Access 2003
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 2 Building a Database and Defining Table Relationships
Presentation transcript:

Database Applications – Microsoft Access Lesson 2 Modifying a Table and Creating a Form 45 slides in presentation Accessibility check 9/14

Lesson 2 – Tutorial 2 For Lesson 2, you will work through Tutorial 2 in your textbook. The tutorial may expose you to more information than is identified in the course competencies. This presentation focuses on the skills necessary to achieve the course competencies as outlined in your syllabus. Default values and validation rules are covered in this lecture, but are not discussed in the text. Pay close attention to these topics. 2

Foundation In the last lesson you learned how to create a new blank database, how to create tables in Datasheet view, and how to enter records into a table. In this lesson, you will learn Overall database design How to manage data How to modify the table with properties that enhance internal control and user interface 3

Guidelines for Database Design The first step in database design is to determine the objectives (goals or purpose) of the database. Determine the information to be stored in the database Organize each piece of data into its smallest useful part - field Group related fields into tables Define a primary key (if appropriate) for each table Include a common field in related tables – avoid data redundancy (unnecessary repetition of data in multiple database tables) 4

Table Design Once you have identified the fields and tables for your database, you can create the table. Tables can be created in Datasheet or Design view. Use Design view in order to have the greatest control over the table design. 5

Table Design (continued) The Table Design window is divided into two panes The Design grid where the field name, data type, and description are entered The Field Properties where field attributes are defined Design Grid Field Properties 6

Field Name Rules Each field must have a unique name. The field name should be descriptive of the data to be stored in the field. Field names may be up to 64 characters long. Field names may contain any combination of letters, numbers, and spaces but may not begin with a space. 7

Field Types Each field must also be given a field type. There are a total of eleven field types to choose from, but the field types we will work with most often are: Short Text Long Text Number Currency Date/Time Yes/No 8

Field Type Guidelines Short Text – choose for fields that will store any type of textual data up to 255 characters (name, address, phone). Note-a text field will accept all other types of data (date, number, etc.). Long Text – Choose for fields that will store long comments and explanations up to 65,535 characters Number – choose for fields that will store numerals (not phone numbers or social security numbers). Currency – choose for fields that will store dollar amounts. Date/Time – choose for fields that will store dates and/or times. Yes/No – choose for fields that will store information in a yes/no or true/false format. 9

Field Type Guidelines The default field type is Short Text (which will accept any type of data), but it is important to specify the correct field type for each field. When applied correctly, the field type can be part of the internal controls built into the database. By specifying the type of data to be stored in a field, you are helping to ensure that accurate data is entered into that field. 10

Field Descriptions When entering field names and types, you also have the opportunity to enter a field description. Field descriptions are not required but can be used as part of database documentation and user interface. 11

Field Properties & Internal Control Two important features to consider when designing your database Internal control – procedures to help protect assets and ensure accurate accounting data User interface – the way in which the database interacts with its users In this tutorial, we will explore how field properties help to accomplish the goals of internal control and appropriate user interface. 12

Field Properties In addition to a name and type, each field has unique properties that further help to specify the type of data stored in the field and can also be used to apply internal controls and user interface. While we will work with various field properties throughout this course, for this lesson we will focus on these two properties: Field Size Format 13

Field Size The default field size for Short Text fields is 255. A valid field size can be anything from 1 to 255. The Field Size property can be an important internal control tool. By setting a specific field size, you can help to ensure that accurate data is entered into the field. 14

Field Size Example The following slide contains an example of how field size can help with internal control. Remember, internal control is a feature that helps to ensure accurate data. Part of accurate data is having the data stored in the manner desired by the designer. 15

Field Size Example Assume the designer wants the State field to be stored as the 2-character abbreviation (TN). If the field size is left at the default size of 255, the state could be entered in any of the following ways: TN Tenn Tennessee By setting the State field size to 2, you are ensuring that the state will be entered as only two characters. 16

Format Property You will use the Format property mainly with number and date/time fields. The format property is helpful with user interface. For instance, if you want a date displayed as a Long Date (Tuesday, January 2, 2006), the Format property will automatically display the data in that format even if the user enters the data as 1/2/06 (which is more efficient for the user.) 17

Default Field Values Default Value Property – used to specify a value that is automatically entered in a field when a new record is created. This feature helps with both internal control and user interface. 18

Default Field Values & Internal Control Internal Control The default value property assists in internal control by helping to assure that accurate data is stored in a field and is entered in the way in which the company desires. 19

Default Field Values & User Interface User Interface The default value property helps with the design of user interface by reducing time required of the user to make an entry. 20

Default Field Values The default value is defined in the Default Value field in the Field Properties pane of Table Design. Enter the field contents exactly as you want them to be stored in the database. In the example shown, the default value for the state was entered as TN. This default value will automatically appear in the table but can be changed to any entry. 21

Validation Rules Validation Rule Property – used to control the data that can be entered in a field by defining the input values that are allowed (valid) Again, this feature is helpful with both internal control and user interface. 22

Validation Rules & Internal Control Internal Control The validation rule property helps in internal control by helping to assure that accurate data is stored in a field. 23

Validation Rules & User Interface User Interface While the validation rule property is mainly an internal control feature, it can also help with the design of user interface. Validation Rules should always be paired with Validation Text. This text allows the designer to instruct the user on acceptable entries and formats. 24

Defining Validation Rules Enter your validation rule in the Validation Rule field of the Field Properties pane of Table Design. Validation rules may contain as many entries as you like. Each acceptable entry must be separated by the OR operator. 25

Validation Rule Example Assume that the designer has determined that the only acceptable entries for the City field are Nashville, Memphis, or Knoxville. Enter the rule as shown with the OR operator between each acceptable entry. Note that the text entries have quotes around them. Access will generally place these for you, but if not, you should enter them manually. The quotes distinguish the valid text entry from the database operator (Or). 26

Validation Text Validation text is part of User Interface. When a user makes an entry that is not on a valid entry as defined by the validation rule, Access will display an error message. You can specify what you want this message to say by entering the message in the Validation Text field. Validation Rules should always be accompanied by custom Validation Text. 27

Validation Text Example Recall from the previous example that the only acceptable entries for the City field are Nashville, Memphis, or Knoxville. Type a validation text message similar to this: The only acceptable entries for City are Nashville, Memphis, or Knoxville. (Note that the screenshot shown could not capture the entire validation text.) 28

Modifying an Existing Table Once a table has been created, you may modify any of its properties. Some property changes may affect data already entered in a table while other changes ignore data already entered. For example, if you add a validation rule to a table after data has been entered, the validation rule applies only to new records, but does not review data already entered. 29

Modifying an Existing Table You can also modify table design by adding, deleting, or moving fields in the table. NOTE: If you delete a field, the field and any data entered in that field are deleted from the table. 30

Adding a Field Add a new field by typing in the field specifications on the next blank line in the Table Design grid. You can also place a field anywhere you would like in relation to the existing fields by inserting a blank line between any existing fields. To do this, right-click where you would like to add the field and choose Insert Rows. 31

Deleting a Field Select the field to delete by clicking the row selector. Delete the field by pressing the Delete key on the keyboard. Row Selector 32

Maintaining Data Maintaining data refers to Adding records Deleting records Updating records While records can be maintained in tables, forms are often used to work more easily with selected records. In this lesson, you will practice maintaining data in tables. In a later lesson, you will maintain data from forms (the preferred method). 33

Deleting Records – Warning! Once a record is deleted, it cannot be restored with the Undo button. 34

Defining Relationships in a Database Databases are built from tables. Good database design dictates that small collections of data should be grouped together in tables. In order for the database to function effectively, tables within the database must be connected. This connection is formed through a common field. 35

Defining Relationships in a Database – Main Table Each database begins with a single table. That table is often the main table. The main table is the table without which no other records would exist. For example, it would make no sense to have a table to store grades if there were no students to whom those grades belonged. In this example, build the student table first – this is the main table. 36

Defining Relationships in a Database –Related Tables All other tables in a database are known as related tables. In the student example, the Grade Table is a related table. 37

Defining Relationships in a Database When you design the tables in your database, be sure to include a common field in each table. Note that this is necessary to create a relationship between tables and is not considered data redundancy. In order to be a common field, the field size and type must be the same in each table. The field does not have to be named the same in each table, but it is recommended that the name be the same so that it is easy to identify the common field. 38

Defining Relationships in a Database Relationships are defined in the Relationships window. The relationships icon is found under the Database Tools tab. The relationships icon can also be found under the Design tab. 39

Defining Relationships in a Database To create a relationship follow these steps: Open the relationships window Right-click in the window and choose Show Table Double click each table listed to add it to the Relationships window Create the relationship by dragging a Join Line from the common field in one table to the same field in the other table (Hint – the common field is often the primary key in the main table) Choose the option to Enforce Referential Integrity – this option means that records in the main table cannot be deleted without deleting the records in the related tables 40

Defining Relationships in a Database Your tables now look as follows in the Relationships window: Note the join line between the tables. This join line indicates a one- to-many relationship. This is the most common type of relationship. Other relationship types are: One-to-One Many-to-Many Undefined 41

End of Lesson Work through Tutorial 2 in your Access textbook. Complete the assigned exercises following the instructions provided by your instructor on the Lesson page. 42