CSC 240 (Blum)1 Introduction to Access 2007. CSC 240 (Blum)2 Click on the Access desktop icon or go to Start/All Programs/Microsoft Office/Microsoft Office.

Slides:



Advertisements
Similar presentations
BASIC SKILLS AND TOOLS USING ACCESS
Advertisements

Microsoft Access.
MS-Access XP Lesson 1. Introduction to MS-Access Database Management System Software (DBMS) Store data in databases Database is a collection of table.
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
Copyright © 2008 Pearson Prentice Hall. All rights reserved. 1 1 Committed to Shaping the Next Generation of IT Experts. Chapter 2: Relational Databases.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 2 1 Microsoft Office Access 2003 Tutorial 2 – Creating And Maintaining A.
Creating a Blank Database 1. Open up Microsoft Access 2. Click on Blank document button 3. On the right panel, Specify the location for saving your database.
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.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
Management Information Systems MS Access 2003 By: Mr. Imdadullah Lecturer, Department of M.I.S. College of Business Administration, KSU.
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.
Chapter 3 Maintaining a Database
Microsoft Access 2000 Creating Tables and Relationships.
INF1050- Databases In this module you will use Microsoft Access to create digital databases.
Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall 1 1. Chapter 2: Relational Databases and Multi-Table Queries Exploring Microsoft Office.
ACCESS. » Access is a database management system. » This system lets you create and process data. » A database is a collection of data that is organized.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
Work with Tables and Database Records Lesson 3. Objectives.
Access Tutorial 2 Building a Database and Defining Table Relationships
Mail merge I: Use mail merge for mass mailings Perform a complete mail merge Now you’ll walk through the process of performing a mail merge by using the.
Microsoft Access Data Base Application. A Few Terms Database – A collection of related information. Database – A collection of related information. Field.
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.
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved Business Driven Information Systems 2e Plug-In T6: Basic Skills and Tools Using.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
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.
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.
Database Systems Microsoft Access Practical #1 Creating Tables Nos 215.
CIS 250 Advanced Computer Applications Introduction to Access.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
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.
1 Database Design and Development: A Visual Approach © 2006 Prentice Hall Chapter 8 DATABASE DESIGN AND DEVELOPMENT: A VISUAL APPROACH Chapter 8 Creating.
CSC 240 (Blum)1 Introduction to Data Entry, Queries and Reports.
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 1 BACKNEXTEND 1-1 LINKS TO OBJECTIVES Create and Open a Database Create and Open a Database.
Microsoft Access 2010 Chapter 10 Administering a Database System.
® Microsoft Office 2013 Access Creating a Database.
BUSINESS DRIVEN TECHNOLOGY Plug-In T5 Touring Access.
Databases,Tables and Forms Access Text by Grauer Chapters 1 & 2.
McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T6 Basic Skills Using Access.
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.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
CSC 240 (Blum)1 Introduction to Access CSC 240 (Blum)2 Click on the Access desktop icon or go to Start/Programs/Microsoft Office/Microsoft Office.
Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.
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.
Microsoft Office 2013: In Practice Chapter 2 Using Design View, Data Validation, and Relationships Copyright © 2014 by The McGraw-Hill Companies, Inc.
Relational Database Techniques
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.
Microsoft Access Prepared by the Academic Faculty Members of IT.
Access Module Implementing a Database with Microsoft Access A Great Module on Your CD.
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.
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.
Introduction to Access 2003
MODULE 7 Microsoft Access 2010
Microsoft Official Academic Course, Access 2016
Microsoft Office Access 2003
Presentation transcript:

CSC 240 (Blum)1 Introduction to Access 2007

CSC 240 (Blum)2 Click on the Access desktop icon or go to Start/All Programs/Microsoft Office/Microsoft Office Access 2007 Click on Blank Database

CSC 240 (Blum)3 Enter a name for your database and either accept the default location or click on the folder to select a different location and then click the Create button

CSC 240 (Blum)4 Use the View drop-down menu to choose Design View

Enter a name for the table. CSC 240 (Blum)5

6 Start entering fields for the Customer table. Start with a CustomerID which will serve as a primary key.

CSC 240 (Blum)7 Data Types Help (obtained by clicking on the blue question in the upper right-hand corner of Access)

CSC 240 (Blum)8 Data Types Help (Cont.)

There is a drop-down list of choices for the Data Type CSC 240 (Blum)9

10 Some Choices We have to select a Data Type for this field. We will select Text. Another possibility is AutoNumber – this choice guarantees uniqueness and is generated automatically, but it is also out of one’s control and can sometimes lead to problems/confusions (some people like it).

CSC 240 (Blum)11 After choosing a data type, enter a description.

CSC 240 (Blum)12 The key icon to the left of the field name indicates that this field will serve as the primary key (or part of it). The larger key button above allows to make the field a primary key if it is not or to take away that status.

CSC 240 (Blum)13 Next change the Field Size to 7 and the Required to Yes and Allow Zero Length to No

CSC 240 (Blum)14 Enter other customer fields as shown

CSC 240 (Blum)15 To require or not to require One would certainly not require CustomerStreetAddress2, but one might consider setting the Require property of the other fields to Yes. Requiring a field can help ensure that the data is complete, but it can lead to some very unforgiving data entry scenarios.

CSC 240 (Blum)16 When adding a field for the customer’s phone number, we might want to use an Input Mask. Click in the Input Mask textbox and click the ellipsis (…) button that appears. You will be prompted to save the table.

CSC 240 (Blum)17 Select the Phone Number choice from the Input Mask list of the Input Mask Wizard and click the Next button.

CSC 240 (Blum)18 The parentheses, space and hyphen appear automatically, the 9’s means that the area code is optional, the zero mean the rest of the numbers are required.

CSC 240 (Blum)19 Message I got because I did not supply all of the required numbers when entering an example in the Try it box.

CSC 240 (Blum)20 Decide how number will be stored.

CSC 240 (Blum)21 Finished mask from Wizard.

CSC 240 (Blum)22 Oops forgot the zipcode! Place the cursor in the PhoneNumber row, right click and choose Insert Rows.

CSC 240 (Blum)23 Go through Input Mask Wizard to obtain Input Mask for a zipcode.

CSC 240 (Blum)24 Add a Customer field and click Save

CSC 240 (Blum)25 If we wanted to start entering Customer data, we would go over to Datasheet view found under the View button.

CSC 240 (Blum)26 Datasheet view of Customer table

CSC 240 (Blum)27 Instead create an Order table by going to the Create tab and clicking on the Table button.

Go to Design View and start designing an Order table, the first field is an OrderID – the primary key for the table. CSC 240 (Blum)28

CSC 240 (Blum)29 Foreign keys Next we establish the relationship “customer places order.” –This is a “one-to-many” relationship. One customer may place many orders, but an order is placed by just one customer. This is done by making the next field on the Order table the ID of the Customer who has made the order. In the Customer table, CustomerID is a primary key, but here in the Order table it is known as a foreign key.

CSC 240 (Blum)30 Use the drop-down box in the Data Type area to select the Lookup Wizard.

CSC 240 (Blum)31 One can use the Option 2 to provide a set of acceptable values, but in this case we want values from the Customer table.

CSC 240 (Blum)32 Later on we can look up the results of queries but at this time we only have Tables. Go to Next.

CSC 240 (Blum)33 Use the arrow button to send over the CustomerID as well as CustomerLastName and CustomerFirstName

CSC 240 (Blum)34 While the data entry person is looking up a CustomerID, they will be looking at customer names, so let us put them in alphabetic order. Use the drop-down boxes to choose the appropriate fields.

CSC 240 (Blum)35 Note the Hide key column checkbox, the data entry person will see the customer name (and not the key) although they are looking up the key.

CSC 240 (Blum)36 Select a label for column in Order table. Click Finish.

CSC 240 (Blum)37 Using a Lookup is establishing a relationship and that the table involved in that relationship has to be saved before the relationship can be established. Click Yes.

CSC 240 (Blum) 38 Add OrderShippingCost and OrderTotalCost fields. They should be of the Currency type.

CSC 240 (Blum)39 Calculated Fields? It may be that the OrderShippingCost or the OrderTotalCost can be calculated from other information stored about the order. And you might read somewhere that you should not store “calculated fields.” But there are at least two reasons not to follow that advice here. 1.Sheer convenience. These are important quantities that one wants to view readily without looking up all of the information required for the calculation. 2.The calculation might change but the customer pays based on the calculation made at the time of the order.

CSC 240 (Blum)40 Add OrderPaymentMethod field (could make should list of possibilities using Lookup Wizard) and OrderShipped field which will be of a Yes/No (Boolean) type.

CSC 240 (Blum)41 Shipping Address One could add fields for the shipping address and a yes/no field asking whether the shipping and customer addresses are the same. But a customer may place many orders all with the same shipping address which is different from the customer’s address. If the shipping address is in the Order table, the same address may have to be entered over and over. This is known as data redundancy and database design tries to minimize it. For now we will pretend the customer address and shipping address are the same until we are ready to address this issue.

CSC 240 (Blum)42 Add fields for when the order was placed and when it was shipped, these should be of the Date/Time type.

CSC 240 (Blum)43 Save the Order table and start designing an Item table. Note the ItemDescription is of the Memo type.

CSC 240 (Blum)44 The OrderLine or ItemLine or ItemInOrder Table An order may contain many different items, an item may be part of many different orders. Thus the order-item relationship is “many-to-many.” The many-to-many relationship is realized by having a separate table. (Our previous tables corresponded to entities.) If you had an order form, the data in this table would correspond to a single line on that form. Thus the table is often called the OrderLine or ItemLine table. If you want the table named after the relationship it is establishing, you might call it the ItemInOrder table.

CSC 240 (Blum)45 Start the new table, the first field in the table is a foreign key establishing the relationship to the Order table. It cannot be a (simple) Primary key. Therefore, use the Primary Key toggle button to indicate that this field is not a primary key.

Change the field to Text, then switch to Lookup Wizrard. CSC 240 (Blum)46

CSC 240 (Blum)47 Unlike the customer lookup where we show the customer name but look up the ID, with order we will use just the ID. To finish off the Lookup Wizard, our new table must be saved.

CSC 240 (Blum)48 The second field is the ItemID, again use the Lookup Wizard – this time one can select both the ID and name fields.

CSC 240 (Blum)49 Multiple-field primary keys – composite key.

CSC 240 (Blum)50 Primary Key button

CSC 240 (Blum)51 Add ItemPrice and QuantityOrdered fields of Currency and Number types respectively. Because of sales, discounts, and changing prices, we place price in this table instead of in the Item table.

CSC 240 (Blum)52 We can get a picture of what we have accomplished so far by clicking on the Relationships button under the Database Tools tab.

CSC 240 (Blum)53 Relationships

CSC 240 (Blum)54 Cementing relationships The relationships between the tables came from using the Lookup Wizard. In DataSheet view, the user will be presented with a drop-down list of choices from the related table. However, at this stage the data entry person is free to enter a result that is not found in the other table. There is a way to insist that the foreign keys must match the primary keys of the related table.

CSC 240 (Blum)55 Right click on the line that represents the relationship and choose Edit Relationship.

CSC 240 (Blum)56 Check the Enforce Referential Integrity checkbox if you want to insist that the foreign key must match a corresponding primary key. Click OK. Then the data entry person will get errors if this is not the case.

Would not allow because Customer table is open. Close it CSC 240 (Blum)57

Close the Edit relationship dialog and then close the Customer table by right clicking and choosing Close. CSC 240 (Blum)58

CSC 240 (Blum)59 Return to Edit Relationship, choose Enforce referential integrity. The relationship is now shown in bold.