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

Slides:



Advertisements
Similar presentations
BASIC SKILLS AND TOOLS USING ACCESS
Advertisements

Microsoft Access.
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.
AS ICT Building MS-Access Databases. Creating a Combo Box Drop Down List 1.When creating a Field requiring a Drop Down list in a Table, select the Lookup.
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Chapter 5 Multitable Forms
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
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.
Chapter 1 Databases and Database Objects: An Introduction
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
Access Tutorial 1 Creating a Database
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.
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.
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
Chapter 3 Maintaining a Database
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
Access Tutorial 2 Building a Database and Defining Table Relationships
Chapter 1 Databases and Database Objects: An Introduction
Chapter 6 Advanced Report Techniques
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
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.
Course ILT Access basics Unit objectives Define database and database-related terminology, and plan a database Start Access and open, create, view, and.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
Access Manual 2 By Dhawala Kovuri Elham S.Khorasani Ismail Guneydas.
® 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.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 8 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 8 Creating.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Access Project 7 Advanced Report and Form Techniques.
® Microsoft Office 2013 Access Creating a Database.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Creating Related Tables Creating Related Tables Determining.
McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T6 Basic Skills Using Access.
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.
You can sort Access data so you can view records in the order you want to view them, and you can filter data so you only see the records you want to see.
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.
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.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Work with Tables and Database Records Lesson 3. NAVIGATING AMONG RECORDS Access users who prefer using the keyboard to navigate records can press keys.
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.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
Copyright © 2014 Pearson Canada Inc. Ext. 5b-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5b Using Microsoft Access Part 2: Using Information.
Access Tutorial 2 Building a Database and Defining Table Relationships
Using Macros, Switchboards, PivotTables, and PivotCharts
Maintaining a Database Using the Design and Update Features of Access
Maintaining a Database
Access Tutorial 1 Creating a Database
Objectives Create an action query to create a table
Access Tutorial 1 Creating a Database
Tutorial 3 – Querying a Database
Chapter 1 Databases and Database Objects: An Introduction
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 2 Building a Database and Defining Table Relationships
Access Tutorial 1 Creating a Database
Access Tutorial 1 Creating a Database
Presentation transcript:

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

Overview Validation Rules Lookup Fields Multivalued Key Foreign Key Referential Integrity

Validation Rules You have created, loaded, queried, and updated a database. To ensure the entry of valid data, Validation Rules are created. Validation Rules ensures that if a field requires an entry, it will be within a specific range or values.

To specify a Required Field Show the Navigation pane and then open the Student table in the Design View. Select the SSN Field by clicking its row selector. Click the Required property box in the Field Properties pane, and then click the down arrow that appears. Click Yes in the list.

Value changed to yes

Specifying a Collection of Allowable Values The only allowable values for Major are Visual Atrs, Cinema, Education, Music, Psychology, Physic, Zoology. For GPA the allowable values are 1 to 4.

Validation Rule Validation Text Major Field Selected

Validation Text Validation Rule Field Selected

To Save the Validation Rules Click the Save button on the Quick access Toolbar to save the changes. Click the NO button to save the changes without testing the current data. Close the Student Table.

No should be selected

Contd… If user enter a value that is different from the Validation Rules then the Validation Text will pop up with the Error Message.

Error Message

Invalid Entry

Creating a Lookup Field Click the Data Type column for the Client Type field, and then click the arrow to display the menu of available data types. Click Lookup Wizard, and then click the I will type in the values that I want. option button to indicate that you will type in the values. Click the Next button to display the next lookup Wizard screen.

Contd., Click the first row of the table and then type Education as the value in the first row. Press the DOWN ARROW key, and then type ZOOLOGY as the value in the second row. Press the DOWN ARROW key, and then type CINEMA as the value in the third row and so on… Click the Next button to display the next Lookup Wizard screen.

Click the Next

Multivalued Field Normally, fields contain only a single value. It is possible to have Multivalued Fields, that is, fields that can contain more than one value. For students who have double Major, we need Multivalued Fields since the Major Field will contain more than one value. To create a Multivalued Field, create a Lookup Field being sure to check the Allow Multiple values check box.

To Add a Multivalued Field The steps for adding a Multivalued Field is almost similar to creating a Lookup Field. Be sure to check the Allow Multiple values check box (Slide No 24).

Click the Next

Select Yes

Foreign Key A foreign key is a field (or fields) that is the primary key of an entity in another table. The purpose of the foreign key is to ensure referential integrity of the data. In other words, only values that are supposed to appear in the database are permitted.

Referential Integrity The property that ensures that the value in a foreign key must match that of another tables primary key is called Referential Integrity. In Access, to specify referential integrity, you must define relationship between the tables using the Relationships command. Access then prohibits any updates to the database that would violate the referential integrity. The type of the relationship between two tables specified by the Relationships command is referred to as a one-to-many relationship. This means that one record in the first table is related to many records in the second table but each record in the second table is related to only one record in the first table.

To Specify Referential Integrity Click Database Tools on the Ribbon to display the Database Tools tab. Click Relationships button on the Database Tools tab to open the Relationships window and display the Show Table dialog box. Import Professor.txt from course webpage and open and click the Professor table and then click the Add button to add Professor table. Click the Student table and then click the Add button to add Student table. Click the Close button in the Show Table dialog box to close the dialog box. Resize the field lists that appear so all fields are visible.

Contd Drag the Professor ID Number field in the Professor Table field list to the Recruiter Number field in the Client table list to open the Edit Relationships dialog box to create a relationship. Click the Enforce Referential Integrity check box. Click the Cascade Update Related Fields check box Click the Create button to complete the creation of the relationship. Click the save button on the Quick Access Toolbar to save the relationship you created. Close the relationship window by clicking the Close Relationships button.

Professor Table Selected Student Table Add buton dialog box

Field List for Professor Table and Student Table Prof ID Num Field in Student Table Prof ID Num Field in Professor Table

Enforce Referential Integrity selected Cascade Update Related Fields selected Create Button Prof ID Num Fields used to relate tables Edit Relationship Dialog Box

One part of the Relationship Many part of the relationship One Prof ID num is related to many Prof Id num Relationship Line