Presentation is loading. Please wait.

Presentation is loading. Please wait.

Your Tour Guide is Jim Provensal. What We Will Cover s Introduction to MicroSoft Access u What is a database u What is a “Relational” Database s The Major.

Similar presentations


Presentation on theme: "Your Tour Guide is Jim Provensal. What We Will Cover s Introduction to MicroSoft Access u What is a database u What is a “Relational” Database s The Major."— Presentation transcript:

1 Your Tour Guide is Jim Provensal

2 What We Will Cover s Introduction to MicroSoft Access u What is a database u What is a “Relational” Database s The Major Steps and elements of a MicroSoft Access Database s A Tour of the “NorthWind Traders” Database

3 What We Will Cover In this session, we will explore the elements of MicroSoft Access, and in the following sessions, we will be building a database application step-by-step using these elements.

4 We Will Continue to explore Building a database with Access s Defining Tasks s Defining the database s Creating the database

5 We Will Continue to explore s Fields s Primary Keys s Validation Rules s Relationships s Indexes and database limitations

6 We Will Continue to explore s Modifying a database design s Inserting & changing fields s Changing attributes and primary Keys s Splitting tables s And More on Relationships

7 We Will Continue to explore s Using and viewing datasheets s Modifying the datasheet s sorting, searching and printing a datasheet

8 We Will Continue to explore s Select Queries And Query Wizards s The basic QBE Grid (Query by Example) s Calculated Fields s Expressions in Queries s Criteria in Queries

9 We Will Continue to explore Because Queries are the heart of MicroSoft Access we will continue exploring queries and their uses.

10 We Will Continue to explore Special & Action Queries 4 Total & Crosstab Queries 4 Make Table Queries 4 Append Queries 4 UpDate and Delete Queries

11 We Will Continue to explore An introduction to basic form design and setting object properties

12 We Will Continue to explore Customizing Forms Calculated fields Subforms

13 We Will Continue to explore Report building from scratch and using Wizards and Sorting & Grouping

14 Before we continue we need to cover some administrative items.  Course Syllabus  A Discussion on the Student Disks  E-mail Addresses  Introductions  Questions?

15 What is a Database? In the simplest sense, a database is a collection of records and files that are organized for a particular purpose!

16 Microsoft Access as an RDBMS Microsoft Access is a fully functional Relational Database Management System

17  Microsoft Access is a database.  This means that it is a program that will store lists of information.  These lists are called “Tables”.

18 M icrosoft Access is a toolbox that will assist the user in creating a system that will automatically manage the information stored in the tables. T his means that Access is not only a database, but a “Database Management System”.

19 S ince some lists (or tables) contain information that is related to other lists, the user can tell Access which lists are related and what piece of information in each list should be used to connect each list. T his means that Microsoft Access is a Relational Database Management System.

20 Main Functions of a Database  Data definition  Data manipulation  Data control  Data reporting

21 Main Functions of a Database Data definition You can define what data will be stored in your database, the type of data (for example, numbers or characters), and how the data is related. In some cases, you can also define how the data should be formatted and how the data should be validated.

22 Main Functions of a Database Data manipulation You can work with the data in many ways. Select which data fields you want, filter the data and then sort it. You can join data with other related information. You can Summarize (group, subtotal and total) the data.

23 Main Functions of a Database Data control You can define who is allowed to read, update, or insert data. In many cases, you can also define how data can be shared and updated by multiple users.

24 Main Functions of a Database Data reporting You can create and save “Pre-defined” report formats that at a click of the mouse can produce up to the minute reports showing (in most cases) data that is within seconds old.

25 What is MicroSoft Access? Access Access is a very powerful “Tool Box” that will allow you to not only “Collect” data, “Store” data, “Manipulate” data, and “Report” data, but it will also allow you as a “Non-Programmer” to create actual applications (programs) for others to use. These applications in most cases can be put together quite quickly and made to look very professional.

26 The Major Steps of a MicroSoft Access Database s Tables s Queries s Forms s Macros s Reports s Modules

27 1) TABLES: The basic element of a data base used only to store raw data. 2) QUERIES: Sets of data consisting of some or all data from one or more tables with related data. 3) FORMS: Screens that are linked to either tables or queries and are used for data entry data editing and controlling what data is accessed and how it looks. 5) MACROS & Modules: Tools used for automation of tasks. 4) REPORTS: Pre defined and pre designed output documents generally used for hard copy output.

28 A collection of related tables is called a database, or relational database. Our Case Study’s database will contain two related tables: The Customer table, which has already created, and The Order table which you will create in Tutorial #2.

29 Sometimes you might want information about customers and the orders they placed. To obtain this information you must have a way to connect records in the Customer table to records in the Order table. You connect the records in the separate tables through a common field that appears in both tables.

30 Figure 1-2 shown on page AC-1.05 of your book shows that each record in the customer table has a field named Customer Number, which is also a field in the Order table.

31 Each Customer Number in the Customer table must be unique, so that you can distinguish one customer from another and identify the customer’s specific orders in the Order table.

32 The Customer number field is referred to as the primary key of the Customer table. A primary key is a field, or a collection of fields, whose values uniquely identify each record in a table.

33 In the Order table, the Order Number field is the primary key for that table.

34 When you include the primary key from one table as a field in a second table to form a relationship between the two tables, it is called a foreign key in the second table as shown above.

35 In a table, the rows are called records and the columns are called fields. Records Fields

36 A relational database management system (DBMS) allows you to create database structures containing fields, tables, and relationships.

37 It lets you easily add new records, change field values in existing records, and delete records.

38 It contains a built-in query language, which lets you obtain immediate answers to the questions you ask about your data.

39 It contains a built-in report generator, which lets you produce professional-looking, formatted reports from your data.

40 It provides protection of data through security, control, and recovery facilities.

41 RELATIONSHIPS CRITERIA DATA ENTRY VIEW AND EDIT OUTPUT RAW DATA STORAGE An Access Database Consists of:

42 If you haven’t already powered up your computer, lets do so now.

43 Let’s take a look at the basic elements that we will encounter when we first create a database or open an existing one for modification. Let’s start Access now and open a new database.

44 Title Bar Menu Bar Tool Bar Database Window Status Bar

45 Object List Command Buttons Object Buttons

46 Before we begin working on our Case Study’s database and using Access, we need to understand a few key terms and concepts associated with databases.

47 Before storing data on a computer, you first must organize the data. We can do this using a data analysis technique, identifying the individual groups of data that will eventually be called tables and each unique item in each group that we will call fields.

48 A field is a single characteristic or attribute of a person, place, object, event, or idea. For example, some of the many fields that Valle Coffee tracks are customer number, customer name, customer address, customer phone number, order number, billing date, and invoice amount.

49 Next, you group related fields together into subjects, or tables. A table is a collection of fields that describe a person, place, object, event, or idea.

50 Data Analysis Task Analysis Data Analysis

51 The design phase of databases can be summarized into three steps: 1) Identify the task (keep your focus as narrow as possible for each task). 2) Identify all the unique pieces of information that is available. 3) Sort each piece of information gathered into related groups.

52 In your syllabus that was handed out a short time ago, you will find two forms. A Task Sheet & a Subject Sheet. Please find them now.

53 Using these forms, let’s take a few moments to try a short exercise that demonstrates how we might go about the initial design phase of a database.

54 After the design is complete on paper it is time to create the database and set up your tables.

55 Click on the Blank Database Button If you exited Access please re-start it now.

56 On the next screen click on Blank Database then OK Click on Blank Database Then Click on the OK Button

57 Name the database Pro.mdb Then click the create button Select My Documents

58 You have now created a new (empty) database and Your screen should look like this.

59 Do you remember The Major Steps of a MicroSoft Access Database? s Tables s Queries s Forms s Macros s Reports s Modules Here they are. These are called Objects in Access.

60 Let’s create a new table in our database.

61 First, make sure that the table tab is selected. Then click on the “New” Button.

62 Now, select design view from the dialog box.

63 We should now have a new table and we are ready to setup fields in the table. But first, let’s look at the elements of the table design screen. Field Name Data Type Description

64 Let’s add our first field. Type Account Number in the first Field Name Row above, then press the Tab key.

65 As soon as you enter the data type column you will notice a pull down selection arrow. You may either click on this arrow or press the F4 key to see the data types available

66 You will find a chart of the different data types available and the properties available for each data type on page AC 2.05 in your book.

67 It’s now time to define the fields that we will be using in our table. Let’s take a few moments to create the following fields in our new table.

68 Account Number:Text First Name: Text Last Name:Text Address:Text City:Text State: Text Zip:Text Phone Number: Text Date of Birth:Date/Time Account Number:Text First Name: Text Last Name:Text Address:Text City:Text State: Text Zip:Text Phone Number: Text Date of Birth:Date/Time

69

70 What is a Primary Key?

71 To set the primary key 1st click on the Account Number Field Then click on the Primary Key Button on the tool bar.

72 It’s now time to save our new table.

73 Select File on the Menu Bar. Then Select Save As since this is the first time that we have saved.

74 Use Table1 (the default) and then click on the OK button.

75 After you have created and saved a table, it’s time to add data. From the menu bar, select View and then Datasheet View.

76 When you first open a datasheet, Access selects the first field value in the first record.

77 The current record symbol appears in the record selector to the left of the first record. The current record symbol identifies the currently selected record.

78 Clicking a record selector or field value in another row moves the current record symbol to that row. You can also move the pointer over the data on the screen and click one of the field values to position the insertion point.

79 The navigation buttons provide another way to move vertically through the records.

80 The Navigation Buttons From Left to Right: This button will bring you to the first record

81 This button will bring you to the previous record The Navigation Buttons From Left to Right:

82 This area indicates the currently active record. You can press the F5 key to go here and then type the record # that you would like to go to. The Navigation Buttons From Left to Right:

83 This button will bring you to the next record The Navigation Buttons From Left to Right:

84 This button will bring you to the last record The Navigation Buttons From Left to Right:

85 This button will bring you to the data entry mode so that you can enter a new record. The Navigation Buttons From Left to Right:

86 Page AC 1.13 Quick Check Review

87 Let’s take a few moments to break up into discussion groups. Each group will discuss the quick check questions on page AC 1.13. We will then review the answers at the end of the discussion.

88 1) A(n) _______ is a single characteristic of a person, place, object, event or idea. Quick Check Review

89 2) You connect the records in two separate tables through a(n) ________ that appears in both tables. Quick Check Review

90 3) The ________, whose values uniquely identify each record in a table, is called a _________ when it is placed in a second table to form a relationship between the two tables. Quick Check Review

91 4) In a table, the rows are called _________ and the columns are called _________. Quick Check Review

92 5) The ________ identifies the selected record in an Access table. Quick Check Review

93 6) Describe the two methods for navigating through a table. Quick Check Review

94 Your Tour Guide is Jim Provensal


Download ppt "Your Tour Guide is Jim Provensal. What We Will Cover s Introduction to MicroSoft Access u What is a database u What is a “Relational” Database s The Major."

Similar presentations


Ads by Google