XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.

Slides:



Advertisements
Similar presentations
Microsoft Access.
Advertisements

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.
Introduction to Microsoft Access
Chapter 5 Multitable Forms
Access Lesson 2 Creating a Database
Chapter 1 Databases and Database Objects: An Introduction
Access Tutorial 1 Creating a Database
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.
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.
Access Tutorial 4 Creating Forms and Reports
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 1 1 Microsoft Access 2003 Tutorial 1 – Introduction To Microsoft Access 2003.
1 Computing for Todays Lecture 16 Yumei Huo Fall 2006.
Access Tutorial 10 Automating Tasks with Macros
Tutorial 1 Creating a Database. Objectives Learn basic database concepts and terms Learn basic database concepts and terms Explore the Microsoft Access.
Chapter 3 Maintaining a Database
XP New Perspectives on Microsoft Access 2002 Tutorial 41 Microsoft Access 2002 Tutorial 4 – Creating Forms and Reports.
Access Lesson 2 Creating a Database
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
Microsoft Access 2 Database Creation and Management.
Access Tutorial 2 Building a Database and Defining Table Relationships
Chapter 1 Databases and Database Objects: An Introduction
® Microsoft Office 2013 Access Building a Database and Defining Table Relationships.
XP New Perspectives on Integrating Microsoft Office XP Tutorial 2 1 Integrating Microsoft Office XP Tutorial 2 – Integrating Word, Excel, and Access.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T6: Basic Skills and Tools Using.
Microsoft Access 2000 Presentation 2 Creating Databases Part I (Creating Tables)
XP New Perspectives on Microsoft Office Access 2003 Tutorial 9 1 Microsoft Office Access 2003 Tutorial 9 – Using Action Queries, and Defining Table Relationships.
Office 2003 Advanced Concepts and Techniques M i c r o s o f t Access Project 5 Enhancing Forms with OLE Fields, Hyperlinks, and Subforms.
XP New Perspectives on Microsoft Access 2002 Tutorial 21 Microsoft Access Tutorial 2 – Creating And Maintaining A Database.
Microsoft Office 2007 Access Chapter 6 Using Macros, Switchboards, PivotTables, and PivotCharts.
XP 1 Microsoft Access 2003 Introduction To Microsoft Access 2003.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Key Applications Module Lesson 21 — Access Essentials
® Microsoft Access 2010 Tutorial 2 Building a Database and Defining Table Relationships.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
® Microsoft Office 2010 Building a Database and Defining Table Relationships.
Microsoft Access 2010 Chapter 10 Administering a Database System.
XP New Perspectives on Microsoft Access 2002 Tutorial 1 1 Microsoft Access 2002 Tutorial 1 – Introduction To Microsoft Access 2002.
® Microsoft Office 2013 Access Creating a Database.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
® Microsoft Access 2010 Tutorial 12 Managing and Securing a Database.
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.
Fall 2003Sylnovie Merchant, Ph.D. ACCESS Tutorial Note: The purpose of this tutorial is to provide an introduction to some of the functions of ACCESS in.
XP New Perspectives on Microsoft Office FrontPage 2003 Tutorial 7 1 Microsoft Office FrontPage 2003 Tutorial 8 – Integrating a Database with a FrontPage.
XP New Perspectives on Microsoft Access 2002 Tutorial 31 Microsoft Access 2002 Tutorial 3 – Querying a Database.
INTRODUCTION TO ACCESS. OBJECTIVES  Define the terms field, record, table, relational database, primary key, and foreign key  Create a blank database.
Ennis-Cole, AC 2.01, CECS Maintaining A Database By: Dr. Ennis-Cole.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
COMPREHENSIVE Access Tutorial 1 Creating a Database.
1 Microsoft Access 2002 Tutorial 2 – Creating And Maintaining A Database.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 4 1 Microsoft Office Access 2003 Tutorial 4 – Creating Forms and Reports.
1 Access Lesson 1 Understanding Access Fundamentals Microsoft Office 2010 Fundamentals Story / Walls.
Access Tutorial 2 Building a Database and Defining Table Relationships
Tutorial 1 Creating a Database
Access Tutorial 1 Creating a Database
Microsoft Office Access 2003
Access Creating a Database
Access Creating a Database
Access Tutorial 1 Creating a Database
MODULE 7 Microsoft Access 2010
Chapter 1 Databases and Database Objects: An Introduction
Microsoft Office Access 2003
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:

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A Database

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 2 Learn the guidelines for designing databases When designing a database, first try to think of all the fields of data that needs to be stored. Next, group the fields into tables. Each table will contain a group of related fields. You need to select a field in each table to become the primary key for that table. When tables will be related to one another, you need to include a common field in the two tables that will be used to form the relationship.

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 3 Determining database fields

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 4 Group the fields into tables

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 5 Choose a primary key Choose a field or fields to serve as the primary key for the table. A primary key must uniquely identify each record in the table. Primary keys can consist of more than one field. –Primary keys with more than one field are called composite keys

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 6 Include a common field When one table needs to be related to another table, you must include a common field. The common field will be the primary key in one table. The common field is referred to as a foreign key in the related table. The foreign key in a table can then be used as a primary key to access the record in the related table.

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 7 Data redundancy wastes space and can lead to data errors

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 8 Setting field properties When assigning a name to any object in Access, carefully select a name that will indicate what data is stored there. Field properties include their data type, field sizes, and an optional description of the field. When selecting a field size, make sure the size is big enough to hold the largest piece of data that will be stored there. –Do not make the field larger then necessary because this will result in wasted disk space Make sure the data type you select for a field is appropriate for the kind of data to be stored in that field.

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 9 Access field types, slide 1

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 10 Access field types, slide 2

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 11 Create a new database You can create a new database by using a Database Wizard or by creating a new, blank database. When you create a new database, you will need to create all the tables, queries, forms, and reports for the database. –This is the most flexible approach, since you will create all objects yourself

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 12 Create a database without using the Database Wizard To create a new, blank database without using the Database Wizard: –Start Access –Click Blank Database in the task pane –In the dialog box, navigate to the location where you will save your database –Enter the name of the database in the File name text box –Click the Create button

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 13 Create a new table

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 14 Define fields, and specify a table's primary key When you create a table, you name the fields and define the properties for the fields. –The table structure is set up and modified in Design View –In Design View, you will define each field that will be included in the table When all the fields have been defined, you will then specify which field(s) will be the primary key. –The primary key is not mandatory, but it is a good idea to assign one

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 15 The database Design View window

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 16 Choosing a primary key Click a row selector for the field you want to use as the primary key, and then click the Primary Key button on the toolbar. After clicking the Primary Key button, a key symbol appears in the row selector to indicate the key field.

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 17 Save the new table When all fields have been defined and properties have been set, you must save the table structure: –Click the Save button on the Table Design toolbar –Type the name you want to assign to the table into the Table Name text box of the Save As dialog box –Click the OK button to save the table using the specified name

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 18 Add records to a table using Datasheet View Once the table has been created, you can then add records to the table using Datasheet View. As you enter records, they will be placed in the order in which you enter them. However, when you close the table and open it again, the records will be ordered according to the primary key order. The navigation bar at the bottom of the Datasheet view will indicate how many records are in the table and what the current record is (i.e., the record on which your cursor currently rests). You can move through the fields in the table by pressing the Tab key. Once your cursor is moved off a record, that record is automatically saved on your disk.

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 19 Datasheet View with 2 records added

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 20 Modify the structure of a table by deleting, moving, and adding fields The structure of a table can be modified after it has been created. To delete a field, enter Design View, right-click on the field, and then click Delete Rows on the drop down menu. To move a field, (you also do this in Design View) click on the field you want to move, and while holding your mouse button down, move the field to the desired location. To add a field in Design View, right-click the field where you want to insert the new field and then click Insert Rows on the dropdown menu.

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 21 Moving a field in Design View

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 22 Adding a new field in Design View 1. Right-click the row selector for the field you want to insert the new field in front of--StartDate in this figure. 2. Select Insert Rows from the shortcut menu, and a new, blank row will be inserted before the row you selected, as shown below. 3. Enter the information for the new field.

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 23 Change field properties You can make additional modifications to the structure of a table by changing the properties of the table's fields. –For example, if you have a field that represents a currency value but you do not want to display dollar signs, you could change the format to a standard format –In the Design View, you will find a list of all formats available to you. You can make a selection from the list of options –Each data type has a separate set of options available in the Field Properties portion of the Table Design Window Field properties are changed in the Design View window.

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 24 Changing field properties in Design View

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 25 Copy records from another Access database If the data you want in your database already exists in another Access database, you can copy the records from that database into your database. You can use cut and paste to do this: –Open the database that contains the records you want to copy –Select the records you want to copy and then press the Copy button. This places the records onto the Windows clipboard –Open the database to which you want to copy the records and open the desired table to receive the copied records –Place your cursor on the next available row in the table and press the Paste button

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 26 Import a table from another Access database You can also import an entire table, including its structure, into another database. To import a database table: –Click the File menu –Point to Get External Data, and then Import –Locate and select the database and the table you want to import This differs from the cut and paste method because you actually import the entire table, its structure, and its data.

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 27 The Import Objects dialog box

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 28 Copy and import considerations If you choose to copy records from one table to another, it is very important that you first determine that the two tables have the exact same data structure. –If the two data structures differ in any way, the copy will cause an error When you import, you are importing an entire table, including its data and its structure. –This is a good way to include a table in your database that was previously designed in a different database

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 29 Delete and change records Once records have been added to a table, they can be deleted or modified: –In Datasheet view, click the row selector for the record(s) you want to delete and then click the Delete Record button on the toolbar To change or modify a record: –Place your cursor on the record and then on the field you want to change –You can then edit the field's value as you wish by typing in new data You can switch from navigation mode to editing mode depending on what you want to do at the time. –When you are editing a record, you are in editing mode, Otherwise you are in navigation mode –Editing mode is indicated by a pencil symbol in the left margin of the datasheet view

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 30 An alternate method for deleting a record

XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 31 Keystroke techniques for navigation and editing modes