Microsoft Office 2007 Access Chapter 3 Maintaining a Database.

Slides:



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

Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
Pasewark & Pasewark Microsoft Office XP: Introductory Course 1 INTRODUCTORY MICROSOFT ACCESS Lesson 4 – Finding and Ordering Data.
Microsoft Office 2010 Access Chapter 1 Creating and Using a Database.
Microsoft Office 2007 Access Chapter 4 Creating Reports and Forms.
Microsoft Office 2007 Access Chapter 2 Querying a Database.
Chapter 1 Databases and Database Objects: An Introduction
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
Access Tutorial 3 Maintaining and Querying a Database
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 3 1 Microsoft Office Access 2003 Tutorial 3 – Querying a Database.
COMPREHENSIVE Access Tutorial 2 Building a Database and Defining Table Relationships.
Querying a Database Microsoft Office Access 2003.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
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.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory Pasewark & Pasewark.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Chapter 3 Maintaining a Database
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
Working with a Database
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.
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.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 6 Switchboards, PivotTables, and PivotCharts.
Microsoft Office 2007 Access Chapter 2 Querying a Database.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
XP 1 Microsoft Access 2003 Introduction To Microsoft Access 2003.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Access Project 3 Notes. Introduction Maintaining the Database  Modifying the data to keep it up-to-date Restructure the Database  To change the database.
Office 2003 Post-Advanced Concepts and Techniques M i c r o s o f t Access Project 7 Advanced Report and Form Techniques.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 2 BACKNEXTEND 2-1 LINKS TO OBJECTIVES Creating Related Tables Creating Related Tables Determining.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
1 After completing this lesson, you will be able to: Change the format of a table. Sort records in a table. Find records in a table Use filters with a.
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.
Maintaining a Database Access Project 3. 2 What is Database Maintenance ?  Maintaining a database means modifying the data to keep it up-to-date. This.
Microsoft Access 2010 Chapter 3 Maintaining a Database.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 1 Creating and Using a Database.
Microsoft Access 2010 Chapter 4 Creating Reports and Forms.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
Dawn Squires.  When viewing a table in Access, all of the records are visible simultaneously.  Sometimes that can be confusing.  To view only one record.
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.
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.
Access Queries and Forms. Adding a New Field  To insert a field after you have saved your table, open Access, and open the table  It is easier to add.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
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 Chapter 2 Querying a Database.
Chapter 7 Advanced Form Techniques
Creating Reports and Forms
Chapter 9 Lesson 2 Notes.
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
Presentation transcript:

Microsoft Office 2007 Access Chapter 3 Maintaining a Database

Objectives Add, change, and delete records Search for records Filter records Update a table design Format a datasheet Use action queries to update records 2Microsoft Office 2007: Introductory Concepts and Techniques

Objectives Specify validation rules, default values, and formats Create and use single-valued and multivalued Lookup fields Specify referential integrity Use a subdatasheet Sort records Microsoft Office 2007: Introductory Concepts and Techniques3

Updating the Database Updating = adding records, deleting records, or editing the data Sometimes more efficient to use a Form for editing rather than the Datasheet Microsoft Office 2007: Introductory Concepts and Techniques4

Creating a Simple Form Click the Form button on the Create tab Microsoft Office 2007: Introductory Concepts and Techniques5

Creating a Simple Form Microsoft Office 2007: Introductory Concepts and Techniques6 Form View Add New Record Button

Searching for a Record Searching = looking for records that satisfy some criteria Examples: “Finding” records is one example of searching; using queries is another To “find” records, click the Find button on the Home tab Microsoft Office 2007: Introductory Concepts and Techniques7

Searching for a Record Microsoft Office 2007: Introductory Concepts and Techniques8

Understanding Filters Filter = displaying only record(s) that satisfy criterion Four types: Filter by Selection Common Filters Filter by Form Advanced Filter/Sort Microsoft Office 2007: Introductory Concepts and Techniques9

Using Filter By Selection Select the data to be filtered (in either Form or Datasheet view) Click the Selection button on the Home tab to display the Selection menu Make the correct choice: Equals … Does Not Equal … Contains … Greater than … Etc. Click the Toggle Filter button Microsoft Office 2007: Introductory Concepts and Techniques10

Clearing All Filters Once you have finished using a filter, it is important to “clear” it before running another Click the Advanced button on the Home Tab Click Clear All Filters Microsoft Office 2007: Introductory Concepts and Techniques11

Using a Common Filter You can filter individual fields by clicking the arrow to the right of the field name and using a Common Filter “Clear All Filters” first Click the arrow beside the field name to be filtered Make the correct choice from there and choose OK Click the Toggle Filter button Microsoft Office 2007: Introductory Concepts and Techniques12

Using Filter By Form Filter by Form allows you to key the Filter criteria in Form view “Clear All Filters” first Click the Advanced button on the Home tab to display the Advanced menu a second time Click Filter By Form on the Advanced menu Microsoft Office 2007: Introductory Concepts and Techniques13

Using Advanced Filter/Sort “Clear All Filters” first From Datasheet View, click the Advanced button on the Home tab Click Advanced Filter/Sort Complete the fields – looks like a query screen Click RUN to perform the filter Click Datasheet View to see the entire datasheet with the results applied It’s important to be in Datasheet View to begin this! Textbook does not give directions for this! Microsoft Office 2007: Introductory Concepts and Techniques14

Adding/Deleting Fields Inserting/Deleting Fields is known as changing the “structure” of the database You must be in Design View for this Click the row selector to select the row that you wish to become a new field or wish to delete Press the INSERT key to ADD or DELETE to REMOVE the field Microsoft Office 2007: Introductory Concepts and Techniques15

Creating a Lookup Field Lookup Field = one that allows the user to “choose” the data instead of keying it In Design View, choose Lookup Wizard for the Field Type Click ‘I will type in the values that I want’ Click the Next button to display the next Lookup Wizard screen Type the first value Press the DOWN ARROW key Continue entering values, pressing DOWN ARROW after each Continue through the Wizard steps Microsoft Office 2007: Introductory Concepts and Techniques16

Adding a Multivalued Field Multivalued Field = a field in which more than one value may be set If you want users to be able to select “more than one,” in the Lookup Wizard, click the Allow Multiple Values check box to enable users to select more than one value Microsoft Office 2007: Introductory Concepts and Techniques17

Making Mass Changes Mass Changes = changing more than one record or field at a time 5 types of queries: Action Query Update Query Delete Query Append Query Make-Table Query Microsoft Office 2007: Introductory Concepts and Techniques18

Using an Update Query Example: Change all records to the client type of MED Create a new design query Click the Update button in the Ribbon, which will add an Update To row Set the criteria and the Update To information Click RUN Microsoft Office 2007: Introductory Concepts and Techniques19

Using a Delete Query Example: Delete all records where the amount due is $0.00 Create a new design query Click the Delete button in the Ribbon Set the criteria for the field(s) where you wish rows to be deleted Click RUN Microsoft Office 2007: Introductory Concepts and Techniques20

Understanding Validation Validation Rules = Access ensures the data entered is “valid” Rules that the user must follow when entering the data Example: Values in Amount Paid are between 0 and 100,000 Validation Text = Access displays a message if the info is invalid Example: Entry must be between 0 and 100,000 Microsoft Office 2007: Introductory Concepts and Techniques21

Specifying a Required Field A Validation Rule can indicate a Required Field (one that cannot be left empty) In Design View, select the field you wish to require Click the Required property box in the Field Properties pane Select Yes Microsoft Office 2007: Introductory Concepts and Techniques22

Specifying a Required Field Microsoft Office 2007: Introductory Concepts and Techniques23 Required Property

Setting Validation Rule and Text In Design View, select the field you wish to have Access validate Example: Click the Validation Rule property box and then type >=0 and <= Click the Validation Text property box and then type Must be at least $0.00 and at most $100,000 Microsoft Office 2007: Introductory Concepts and Techniques24

Specifying a Range Microsoft Office 2007: Introductory Concepts and Techniques25 Validation Rule Validation Text

Specifying a Default Value In Design View, select the field Click the Default Value property box then type =MED Microsoft Office 2007: Introductory Concepts and Techniques26 Default Value

Specifying a Collection of Allowable Values In Design View, select the field Click the Validation Rule property box to produce an insertion point and then type =MED or =DNT or =LAB Click the Validation Text property box and then type Must be MED, DNT, or LAB as the validation text Microsoft Office 2007: Introductory Concepts and Techniques27

Specifying a Format Format = the way the data displays in a field Format Symbol = a special symbol keyed in the Format property box > causes Access to display lc letters as caps < causes Access to display caps as lc letters Microsoft Office 2007: Introductory Concepts and Techniques28

Specifying a Format Microsoft Office 2007: Introductory Concepts and Techniques29 Format Value

Using a Lookup Field In Datasheet View, the “lookup field” will now contain a drop-down arrow to display the list of choices Click the arrow and choose from there Microsoft Office 2007: Introductory Concepts and Techniques30

Using a Lookup Field Microsoft Office 2007: Introductory Concepts and Techniques31 Lookup Arrow

Using a Multivalued Lookup Field In Datasheet View, click the drop-down arrow and click all choices that apply by clicking the check boxes Microsoft Office 2007: Introductory Concepts and Techniques32

Using a Multivalued Lookup Field Microsoft Office 2007: Introductory Concepts and Techniques33 More than one will appear in the same row

Resizing a Column in a Datasheet Just like in Excel, you can have Access “best fit” the data by double-clicking the right boundary of the field selector You can select more than one field before double-clicking to set more than one at a time Microsoft Office 2007: Introductory Concepts and Techniques34

Including Totals in a Datasheet In Datasheet View, click the Totals button on the Home tab Access will add a Total row to the Datasheet For each field you would like to display a total, choose a type of total from the drop down list of choices in the Total row Access has common totals like Avg, Sum, Count, etc. Microsoft Office 2007: Introductory Concepts and Techniques35

Including Totals in a Datasheet Microsoft Office 2007: Introductory Concepts and Techniques36 Total Row Drop down list for types of totals

Removing Totals from a Datasheet Click the Totals button again Microsoft Office 2007: Introductory Concepts and Techniques37

Changing Gridlines in a Datasheet Click the box in the upper-left corner of the Datasheet selector to select the entire datasheet Click the Gridlines button on the Home tab Choose the type of Gridlines you would like to display (Horizontal only, Vertical only, etc) Microsoft Office 2007: Introductory Concepts and Techniques38

Changing Gridlines in a Datasheet Microsoft Office 2007: Introductory Concepts and Techniques39

Changing the Colors in a Datasheet In Datasheet View, click the Alternate Fill/Back Color button arrow on the Home Tab Select a color as the alternate color You can also change the font color as well as the font, size, etc., using the Home tab Microsoft Office 2007: Introductory Concepts and Techniques40

Changing the Colors and Font in a Datasheet Microsoft Office 2007: Introductory Concepts and Techniques41

Querying a Multivalued Field Showing Multiple Values on Multiple Rows Normally, multiple values show on the SAME row To display on multiple rows, use the Field property In Design View, click the appropriate field then type a period and the word Value after the field name RUN the query Microsoft Office 2007: Introductory Concepts and Techniques42

Querying a Multivalued Field Showing Multiple Values on Multiple Rows Microsoft Office 2007: Introductory Concepts and Techniques43

Understanding Referential Integrity Referential Integrity = ensures that the value in one field must match that of the primary key in another table Example: The Recruiter Number in the Client table MUST match a Recruiter Number in the Recruiter table and the Recruiter Number MUST be the primary key in the Recruiter table This creates a one-to-many relationship: ONE record in the first table (Recruiter) relates to MANY records in the second table (Client) Microsoft Office 2007: Introductory Concepts and Techniques44

Setting Referential Integrity Click Database Tools on the Ribbon Click the Relationships button This opens the Relationships window Double-click the Recruiter table to Add the “one” table Double-click the Client table to Add the “many” table Microsoft Office 2007: Introductory Concepts and Techniques45

Setting Referential Integrity Drag the matching field from the table on the left side of the screen to the table on the right side 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 Access will now REJECT any number that does not match Microsoft Office 2007: Introductory Concepts and Techniques46

Specifying Referential Integrity Microsoft Office 2007: Introductory Concepts and Techniques47

Using a Subdatasheet Once you establish referential integrity, the datasheet will display a “plus sign” in front of a row(s) that has subdata Click the plus sign in front of the row to display the subdatasheet Microsoft Office 2007: Introductory Concepts and Techniques48

Using a Subdatasheet Microsoft Office 2007: Introductory Concepts and Techniques49 Sub- datasheet

Using the Sort Buttons Normally records in Datasheet view are sorted by the Primary key To change this sort, in Datasheet view, select the field to be sorted Click the correct sort button on the Home tab Microsoft Office 2007: Introductory Concepts and Techniques50

Backup and Recovery It is possible to damage or destroy a database The database may contain invalid data Recover = returning the database to its correct state A backup copy can be used as a recovery method Office Button Menu | Manage | Back Up Database Access names the backup file the same as the original but adds the date to the filename Microsoft Office 2007: Introductory Concepts and Techniques51

Compacting and Repairing Adding data causes the database to grow larger Deleting DOES NOT automatically give you back file space Compact = removing the wasted space Office Button menu | Manage | Compact and Repair Microsoft Office 2007: Introductory Concepts and Techniques52

Summary Add, change, and delete records Search for records Filter records Update a table design Format a datasheet Use action queries to update records 53Microsoft Office 2007: Introductory Concepts and Techniques

Summary Specify validation rules, default values, and formats Create and use single-valued and multivalued Lookup fields Specify referential integrity Use a subdatasheet Sort records Microsoft Office 2007: Introductory Concepts and Techniques54

Microsoft Office 2007 Access Chapter 3 Complete