Instructor: Eng. Juan E. Crespo Introduction to MS Access 2007 Copyright Crespo Technology Services Group, Inc.
Course Outline <ul><li>Lesson 1: Exploring the Microsoft® Office Access™ 2007 Environment  </li></ul><ul><ul><li>Examine D...
Exploring the Microsoft® Office Access™ 2007 Environment Copyright Crespo Technology Services Group, Inc.
Database Concepts <ul><li>Terms </li></ul><ul><ul><li>Database: collection of objects that allow you to store data, organi...
Database Concepts Copyright Crespo Technology Services Group, Inc. Last Name First Name Student ID City Pérez Juan 101010 ...
Database Concepts <ul><li>Database Design </li></ul><ul><ul><li>Reason for the database: There are usually two reasons for...
Explore the User Interface <ul><li>MS Access 2007 is a Database Management System </li></ul><ul><li>It allows the user to:...
Explore the User Interface <ul><li>The user interface is composed of: </li></ul><ul><ul><li>Office button </li></ul></ul><...
Explore the User Interface Copyright Crespo Technology Services Group, Inc.
Explore the User Interface Copyright Crespo Technology Services Group, Inc.
Explore the Ribbon  <ul><li>Home Tab </li></ul><ul><ul><li>Views </li></ul></ul><ul><ul><li>Clipboard </li></ul></ul><ul><...
Explore the Ribbon  <ul><li>Create Tab </li></ul><ul><ul><li>Tables </li></ul></ul><ul><ul><li>Forms </li></ul></ul><ul><u...
Explore the Ribbon  <ul><li>External Data Tab </li></ul><ul><ul><li>Import </li></ul></ul><ul><ul><li>Export </li></ul></u...
Explore the Ribbon  <ul><li>Database Tools Tab </li></ul><ul><ul><li>Macro </li></ul></ul><ul><ul><li>Show/Hide </li></ul>...
Use an Existing Database <ul><li>Tables are composed of three elements </li></ul><ul><ul><li>Fields: these are the table c...
Use an Existing Database <ul><li>Queries </li></ul><ul><ul><li>Request Information </li></ul></ul><ul><ul><li>Requires fie...
Use an Existing Database <ul><li>Recordset </li></ul><ul><ul><li>Is a table </li></ul></ul><ul><ul><li>Displays smaller se...
Use an Existing Database <ul><li>Forms </li></ul><ul><ul><li>Used to display and edit data </li></ul></ul><ul><ul><li>Base...
Use an Existing Database <ul><li>Report </li></ul><ul><ul><li>Screen output of data </li></ul></ul><ul><ul><li>Presented a...
Customize the Access Environment  <ul><li>Can be found on the MS Office button </li></ul>Copyright Crespo Technology Servi...
Customize the Access Environment  <ul><li>Various options to customize the MS Access environment </li></ul><ul><ul><li>Dat...
Obtain Help  <ul><li>Access Help </li></ul><ul><ul><li>Complete manual on features </li></ul></ul><ul><ul><li>Quick and ea...
Design a Database Copyright Crespo Technology Services Group, Inc.
Relational Database Designing Process <ul><li>Sequential process for developing a database plan </li></ul><ul><li>This pro...
Define Database Purpose <ul><li>Statement of purpose </li></ul><ul><ul><li>Defines the scope of a database </li></ul></ul>...
Review Existing Data <ul><li>Relevant data to the statement of purpose </li></ul><ul><li>Can be in paper or electronic </l...
Determine Fields <ul><li>The required fields depend on the information required by the user </li></ul><ul><ul><li>Reports ...
Group Fields Into Tables <ul><li>Business Rules </li></ul><ul><ul><li>Policies and procedures that govern operation of an ...
Database Design <ul><li>Class Exercise </li></ul><ul><ul><li>You are required to develop a database to keep track of the b...
Database Design <ul><li>Class Exercise </li></ul><ul><ul><li>Develop a list of data required for this database </li></ul><...
Normalize Data <ul><li>Normalization </li></ul><ul><ul><li>Process organizing data in a database </li></ul></ul><ul><ul><l...
Normalize Data <ul><li>Break data into smallest values possible </li></ul><ul><li>Assure data is not repeated </li></ul><u...
De-normalization <ul><li>Definition </li></ul><ul><ul><li>Combining tables into a bigger table </li></ul></ul><ul><li>Uses...
Designate Primary and Foreign Keys <ul><li>Primary Key </li></ul><ul><ul><li>Field with unique values </li></ul></ul><ul><...
Designate Primary and Foreign Keys <ul><li>Composite Key </li></ul><ul><ul><li>Made of the union of two unique fields </li...
Designate Primary and Foreign Keys <ul><li>Class Exercise </li></ul><ul><ul><li>Define a primary and foreign key for each ...
Determine Table Relationships <ul><li>Representation of association among data contained within tables </li></ul><ul><li>H...
Building a Database Copyright Crespo Technology Services Group, Inc.
Create a Database <ul><li>To create a database </li></ul><ul><ul><li>Open Access 2007 </li></ul></ul><ul><ul><li>In the Ge...
Create a Table <ul><li>Access creates a new table when a new blank database is created </li></ul><ul><li>New tables can be...
Table Views <ul><li>Tables can be viewed in several ways.  The two most common views are:  </li></ul><ul><ul><li>Datasheet...
Field Insertion Feature <ul><li>Allows adding new fields from datasheet view </li></ul><ul><ul><li>Write the field name in...
Data Types <ul><li>Text: Contains characters up to 255 </li></ul><ul><li>Memo: Advanced text field. Can hold up to 2 GB of...
New Fields <ul><li>Fields can be added through: </li></ul><ul><ul><li>Field insertion feature  </li></ul></ul><ul><ul><li>...
Creating Tables <ul><li>Create the tables for the books circulation class exercise </li></ul><ul><li>Use the datasheet vie...
Table Maintenance <ul><li>Tables can be: </li></ul><ul><ul><li>Deleted </li></ul></ul><ul><ul><li>Renamed </li></ul></ul><...
Table Properties <ul><li>Allows for a detailed description of the table </li></ul><ul><li>Presents information about the t...
Referential Integrity <ul><li>Process to ensure data validity across two tables </li></ul><ul><li>It is enforced by ensuri...
Referential Integrity <ul><li>Referential integrity between two table can be set if: </li></ul><ul><ul><li>Both tables are...
Table Relationships <ul><li>In the Database Tools tab select relationships </li></ul><ul><li>If no relationship exists, Ac...
Table Relationships <ul><li>Create the table relationships for the books circulation class exercise </li></ul><ul><li>Enfo...
Save a Database in a Previous Version <ul><li>In the Office Button menu select Save As </li></ul><ul><li>There are several...
Managing Data in a Table Copyright Crespo Technology Services Group, Inc.
Modifying Data <ul><li>Users can: </li></ul><ul><ul><li>Search for records </li></ul></ul><ul><ul><li>Replace Data in reco...
Find Command <ul><li>Helps locate specific data. </li></ul><ul><li>Has various find options </li></ul>Copyright Crespo Tec...
Replace Command <ul><li>Helps replace specific data with new data </li></ul><ul><li>Has various replace options </li></ul>...
Totals Features <ul><li>Provides simple math functions to the tables </li></ul>Copyright Crespo Technology Services Group,...
Sorting Records <ul><li>Can sort data </li></ul><ul><ul><li>Ascending  </li></ul></ul><ul><ul><li>Descending  </li></ul></...
Subdatasheets <ul><li>Datasheet nested within another datasheet </li></ul><ul><li>Contains data related to the first datas...
Copyright Crespo Technology Services Group, Inc.
Managing Data <ul><li>Class Exercise </li></ul><ul><ul><li>Fill the created tables with at least 10 records each </li></ul...
Queriyng a Database Copyright Crespo Technology Services Group, Inc.
Querying a Database <ul><li>Looking for data in a database is difficult unless there is  mechanism for extracting and isol...
Filter Feature <ul><li>Display only the records that match your criteria </li></ul><ul><li>Filter data based on the values...
Query Wizard <ul><li>Select Query Wizard </li></ul><ul><li>Select type of query </li></ul><ul><li>Select query fields </li...
Query Types <ul><li>Simple: Can select fields from multiple tables and queries </li></ul><ul><li>Crosstab: Can perform sim...
Query Design Context Tab <ul><li>Query Design </li></ul><ul><ul><li>Results </li></ul></ul><ul><ul><li>Query Type </li></u...
Query Object Views <ul><li>Design View </li></ul><ul><li>SQL View </li></ul><ul><li>Datasheet View </li></ul><ul><li>Pivot...
Show Tables Dialog Box <ul><li>The Show Tables dialog box is found on the Query Design Context Tab </li></ul><ul><li>The u...
Create a Query <ul><li>Class Exercise </li></ul><ul><ul><li>Create a query of students </li></ul></ul><ul><ul><li>Create a...
Query Criteria <ul><li>Search condition to retrieve specific information </li></ul><ul><li>These are used to compare crite...
Comparison Operators <ul><li>Symbols used to compare two values </li></ul><ul><li>When set in criterion establishes result...
List of Comparison Operators <ul><li>= : Equals </li></ul><ul><li>< : Less than </li></ul><ul><li><= : Less than or equal ...
Conditional Operators <ul><li>Test for the truth of a comparison </li></ul><ul><li>The result is always a true or false </...
List of Conditional Operators <ul><li>AND : True if both conditions are true </li></ul><ul><ul><li>Example: >2 AND <>10 </...
Create a Query <ul><li>Class Exercise </li></ul><ul><ul><li>Create a query of students that have books out </li></ul></ul>...
Calculated Fields <ul><li>Values come from calculations with other fields </li></ul><ul><li>Are not entered by the user bu...
Arithmetic Operators Copyright Crespo Technology Services Group, Inc. Arithmetic Operator Description Example + Addition v...
Expressions <ul><li>Values come from calculations with other fields </li></ul><ul><li>Are not entered by the user but are ...
Expression Builder <ul><li>Allows users to select objects and use operators and functions to build formulas </li></ul><ul>...
Property Sheet Pane <ul><li>Allows users to set properties to objects </li></ul><ul><li>These properties can be of Structu...
Group by Functions <ul><li>Perform calculations on a group of values </li></ul><ul><li>Can be used with any number of valu...
Designing Forms Copyright Crespo Technology Services Group, Inc.
Designing Forms <ul><li>Datasheet view </li></ul><ul><ul><li>Can be difficult to view large amounts data </li></ul></ul><u...
Form Views Copyright Crespo Technology Services Group, Inc. View Description Design A static  view that helps design a for...
Form Sections <ul><li>Perform calculations on a group of values </li></ul><ul><li>Can be used with any number of values an...
Group by Functions <ul><li>Header: Displays Title </li></ul><ul><li>Detail: Displays fields </li></ul><ul><li>Footer: Disp...
Form Creation Tools Copyright Crespo Technology Services Group, Inc. Form Creation Tool Description Form Creates a form wi...
Modifying the Design of a Form <ul><li>Can be dome by modifying the TAB order </li></ul><ul><li>Add, delete or modify cont...
Generating Reports Copyright Crespo Technology Services Group, Inc.
Report Views Copyright Crespo Technology Services Group, Inc. View Description Design Ability to add, modify or delete con...
Report Sections <ul><li>Header: Displays Title </li></ul><ul><li>Detail: Displays fields </li></ul><ul><li>Footer: Display...
Report Creation Tool Copyright Crespo Technology Services Group, Inc. View Description Report Creates a report with all th...
Report Creation Wizard Copyright Crespo Technology Services Group, Inc.
Report Printing Copyright Crespo Technology Services Group, Inc.
Upcoming SlideShare
Loading in...5
×

Training Ms Access 2007

12,524

Published on

COBIMET MS Access Training

Published in: Technology
20 Comments
83 Likes
Statistics
Notes
No Downloads
Views
Total Views
12,524
On Slideshare
0
From Embeds
0
Number of Embeds
6
Actions
Shares
0
Downloads
0
Comments
20
Likes
83
Embeds 0
No embeds

No notes for slide
  • Training Ms Access 2007

    1. 1. Instructor: Eng. Juan E. Crespo Introduction to MS Access 2007 Copyright Crespo Technology Services Group, Inc.
    2. 2. Course Outline <ul><li>Lesson 1: Exploring the Microsoft® Office Access™ 2007 Environment </li></ul><ul><ul><li>Examine Database Concepts </li></ul></ul><ul><ul><li>Explore the User Interface </li></ul></ul><ul><ul><li>Explore the Ribbon </li></ul></ul><ul><ul><li>Customize the Access Environment </li></ul></ul><ul><ul><li>Obtain Help </li></ul></ul><ul><ul><li>Use an Existing Access Database </li></ul></ul><ul><li>Lesson 2: Designing a Database </li></ul><ul><ul><li>Describe the Relational Database Design Process </li></ul></ul><ul><ul><li>Define Database Purpose </li></ul></ul><ul><ul><li>Review Existing Data </li></ul></ul><ul><ul><li>Determine Fields </li></ul></ul><ul><ul><li>Group Fields into Tables </li></ul></ul><ul><ul><li>Normalize Data </li></ul></ul><ul><ul><li>Designate Primary and Foreign Keys </li></ul></ul><ul><ul><li>Determine Table Relationships </li></ul></ul><ul><li>Lesson 3: Building a Database </li></ul><ul><ul><li>Create a New Database </li></ul></ul><ul><ul><li>Create a Table </li></ul></ul><ul><ul><li>Manage Tables </li></ul></ul><ul><ul><li>Create a Table Relationship </li></ul></ul><ul><ul><li>Save a Database as a Previous Version </li></ul></ul><ul><li>Lesson 4: Managing Data in a Table </li></ul><ul><ul><li>Modify Table Data </li></ul></ul><ul><ul><li>Sort Records </li></ul></ul><ul><ul><li>Work with Subdatasheets </li></ul></ul><ul><li>Lesson 5: Querying a Database </li></ul><ul><ul><li>Filter Records </li></ul></ul><ul><ul><li>Create a Query </li></ul></ul><ul><ul><li>Add Criteria to a Query </li></ul></ul><ul><ul><li>Add a Calculated Field to a Query </li></ul></ul><ul><ul><li>Perform Calculations on a Record Grouping </li></ul></ul><ul><li>Lesson 6: Designing Forms </li></ul><ul><ul><li>View Data Using an Access Form </li></ul></ul><ul><ul><li>Create a Form </li></ul></ul><ul><ul><li>Modify the Design of a Form </li></ul></ul><ul><li>Lesson 7: Generating Reports </li></ul><ul><ul><li>View an Access Report </li></ul></ul><ul><ul><li>Create a Report </li></ul></ul><ul><ul><li>Add a Custom Calculated Field to a Report </li></ul></ul><ul><ul><li>Format the Controls in a Report </li></ul></ul><ul><ul><li>Apply an AutoFormat to a Report </li></ul></ul><ul><ul><li>Prepare a Report for Print </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    3. 3. Exploring the Microsoft® Office Access™ 2007 Environment Copyright Crespo Technology Services Group, Inc.
    4. 4. Database Concepts <ul><li>Terms </li></ul><ul><ul><li>Database: collection of objects that allow you to store data, organize it and retrieve it in any way you want. It may contain: </li></ul></ul><ul><ul><ul><li>Tables: structure that allow you to organize the data so that it's easy to find later </li></ul></ul></ul><ul><ul><ul><li>Forms: let you input the data into the tables </li></ul></ul></ul><ul><ul><ul><li>Reports: print selected information from the tables </li></ul></ul></ul><ul><ul><li>Relational Database: stores data in various interrelated tables where data is stored, accessed and presented without affecting the structure </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    5. 5. Database Concepts Copyright Crespo Technology Services Group, Inc. Last Name First Name Student ID City Pérez Juan 101010 Utuado Crespo Carlos 802-91-2515 Aguadilla
    6. 6. Database Concepts <ul><li>Database Design </li></ul><ul><ul><li>Reason for the database: There are usually two reasons for a database: </li></ul></ul><ul><ul><ul><li>Data management: Add, remove or modify data </li></ul></ul></ul><ul><ul><ul><li>Data analysis: Analyze information and trends </li></ul></ul></ul><ul><ul><li>Database content </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    7. 7. Explore the User Interface <ul><li>MS Access 2007 is a Database Management System </li></ul><ul><li>It allows the user to: </li></ul><ul><ul><li>Retrieve and update data </li></ul></ul><ul><ul><li>Present data sorted or grouped </li></ul></ul><ul><ul><li>Import or export data from various sources including the Internet </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    8. 8. Explore the User Interface <ul><li>The user interface is composed of: </li></ul><ul><ul><li>Office button </li></ul></ul><ul><ul><li>Quick access tool bar </li></ul></ul><ul><ul><li>The ribbon </li></ul></ul><ul><ul><li>The navigation pane </li></ul></ul><ul><ul><li>The MS Office window frame </li></ul></ul><ul><ul><li>Dialog box launcher </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    9. 9. Explore the User Interface Copyright Crespo Technology Services Group, Inc.
    10. 10. Explore the User Interface Copyright Crespo Technology Services Group, Inc.
    11. 11. Explore the Ribbon <ul><li>Home Tab </li></ul><ul><ul><li>Views </li></ul></ul><ul><ul><li>Clipboard </li></ul></ul><ul><ul><li>Font </li></ul></ul><ul><ul><li>Rich Text </li></ul></ul><ul><ul><li>Records </li></ul></ul><ul><ul><li>Sort & Filter </li></ul></ul><ul><ul><li>Find </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    12. 12. Explore the Ribbon <ul><li>Create Tab </li></ul><ul><ul><li>Tables </li></ul></ul><ul><ul><li>Forms </li></ul></ul><ul><ul><li>Reports </li></ul></ul><ul><ul><li>Other </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    13. 13. Explore the Ribbon <ul><li>External Data Tab </li></ul><ul><ul><li>Import </li></ul></ul><ul><ul><li>Export </li></ul></ul><ul><ul><li>Collect Data </li></ul></ul><ul><ul><li>SharePoint List </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    14. 14. Explore the Ribbon <ul><li>Database Tools Tab </li></ul><ul><ul><li>Macro </li></ul></ul><ul><ul><li>Show/Hide </li></ul></ul><ul><ul><li>Analyze </li></ul></ul><ul><ul><li>Move Data </li></ul></ul><ul><ul><li>Database Tools </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    15. 15. Use an Existing Database <ul><li>Tables are composed of three elements </li></ul><ul><ul><li>Fields: these are the table columns </li></ul></ul><ul><ul><li>Records: these are the table rows </li></ul></ul><ul><ul><li>Values: A single piece of data </li></ul></ul>Copyright Crespo Technology Services Group, Inc. Student ID Last Name First Name 101010 Pérez Juan 802-91-2154 Crespo Carlos 010101 Campos Diana
    16. 16. Use an Existing Database <ul><li>Queries </li></ul><ul><ul><li>Request Information </li></ul></ul><ul><ul><li>Requires fields and table names </li></ul></ul><ul><ul><li>Can include conditions </li></ul></ul><ul><ul><li>Can be reused </li></ul></ul><ul><ul><li>Can perform calculations </li></ul></ul>Copyright Crespo Technology Services Group, Inc. Student ID Last Name First Name 101010 Pérez Juan 802-91-2154 Crespo Carlos 010101 Campos Diana
    17. 17. Use an Existing Database <ul><li>Recordset </li></ul><ul><ul><li>Is a table </li></ul></ul><ul><ul><li>Displays smaller set of records </li></ul></ul><ul><ul><li>Can come from a table or query </li></ul></ul>Copyright Crespo Technology Services Group, Inc. Last Name First Name Dept. Crespo Carlos IS Campos Diana IS Student ID Last Name First Name Birth Date Dept. City 101010 Pérez Juan 01/01/70 HUM Utuado 802-91-2154 Crespo Carlos 07/16/73 IS Aguadilla 010101 Campos Diana 03/20/78 IS Lares 123456 Figueroa Ricardo 10/31/76 ADM Coamo 131313 Rivera David 11/02/80 ADM Utuado
    18. 18. Use an Existing Database <ul><li>Forms </li></ul><ul><ul><li>Used to display and edit data </li></ul></ul><ul><ul><li>Based on tables or queries </li></ul></ul><ul><ul><li>Can be customized </li></ul></ul><ul><ul><li>Can include </li></ul></ul><ul><ul><ul><li>Calculations </li></ul></ul></ul><ul><ul><ul><li>Graphics </li></ul></ul></ul><ul><ul><ul><li>Other objects </li></ul></ul></ul>Copyright Crespo Technology Services Group, Inc.
    19. 19. Use an Existing Database <ul><li>Report </li></ul><ul><ul><li>Screen output of data </li></ul></ul><ul><ul><li>Presented as specified by the user </li></ul></ul><ul><ul><li>Data comes from tables or queries </li></ul></ul><ul><ul><li>Can perform calculations and display results </li></ul></ul><ul><ul><li>Can be printed </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    20. 20. Customize the Access Environment <ul><li>Can be found on the MS Office button </li></ul>Copyright Crespo Technology Services Group, Inc.
    21. 21. Customize the Access Environment <ul><li>Various options to customize the MS Access environment </li></ul><ul><ul><li>Database objects </li></ul></ul><ul><ul><li>Security </li></ul></ul><ul><ul><li>Quick Access toolbar </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    22. 22. Obtain Help <ul><li>Access Help </li></ul><ul><ul><li>Complete manual on features </li></ul></ul><ul><ul><li>Quick and easy access to answers </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    23. 23. Design a Database Copyright Crespo Technology Services Group, Inc.
    24. 24. Relational Database Designing Process <ul><li>Sequential process for developing a database plan </li></ul><ul><li>This process consists of seven steps </li></ul><ul><ul><li>Database purpose </li></ul></ul><ul><ul><li>Review existing data </li></ul></ul><ul><ul><li>Create list of fields </li></ul></ul><ul><ul><li>Organize fields into tables </li></ul></ul><ul><ul><li>Enter sample data and verify if changes are required </li></ul></ul><ul><ul><li>Designate primary and foreign keys </li></ul></ul><ul><ul><li>Determine table relationships </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    25. 25. Define Database Purpose <ul><li>Statement of purpose </li></ul><ul><ul><li>Defines the scope of a database </li></ul></ul><ul><ul><li>Helps guide the design </li></ul></ul><ul><ul><li>Implies the kind of data </li></ul></ul><ul><ul><li>Determine the probable users </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    26. 26. Review Existing Data <ul><li>Relevant data to the statement of purpose </li></ul><ul><li>Can be in paper or electronic </li></ul><ul><ul><li>Paper </li></ul></ul><ul><ul><ul><li>Internal Business Forms </li></ul></ul></ul><ul><ul><ul><li>Government Forms </li></ul></ul></ul><ul><ul><ul><li>Invoices </li></ul></ul></ul><ul><ul><li>Electronic </li></ul></ul><ul><ul><ul><li>Spreadsheets </li></ul></ul></ul><ul><ul><ul><li>Word documents </li></ul></ul></ul><ul><ul><ul><li>Databases (Access, MS SQL, Oracle, etc.) </li></ul></ul></ul><ul><ul><ul><li>Web pages </li></ul></ul></ul>Copyright Crespo Technology Services Group, Inc.
    27. 27. Determine Fields <ul><li>The required fields depend on the information required by the user </li></ul><ul><ul><li>Reports </li></ul></ul><ul><ul><li>Summary information </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    28. 28. Group Fields Into Tables <ul><li>Business Rules </li></ul><ul><ul><li>Policies and procedures that govern operation of an organization </li></ul></ul><ul><ul><li>Define methods for data entry in a database </li></ul></ul><ul><ul><li>Define a standard naming convention for objects. Example: Student name object can be S_Fname and the lastname can be S_Lname </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    29. 29. Database Design <ul><li>Class Exercise </li></ul><ul><ul><li>You are required to develop a database to keep track of the books being lent by the university library. </li></ul></ul><ul><ul><li>Assumptions </li></ul></ul><ul><ul><ul><li>Only students are allowed to take books </li></ul></ul></ul><ul><ul><ul><li>The books can only be lent for two weeks </li></ul></ul></ul><ul><ul><ul><li>No other service will be tracked through this database </li></ul></ul></ul>Copyright Crespo Technology Services Group, Inc.
    30. 30. Database Design <ul><li>Class Exercise </li></ul><ul><ul><li>Develop a list of data required for this database </li></ul></ul><ul><ul><ul><li>How many tables are required? Why? </li></ul></ul></ul><ul><ul><ul><li>What information is required for each table? </li></ul></ul></ul>Copyright Crespo Technology Services Group, Inc.
    31. 31. Normalize Data <ul><li>Normalization </li></ul><ul><ul><li>Process organizing data in a database </li></ul></ul><ul><ul><li>Optimizes table structure </li></ul></ul><ul><ul><li>Refining database by reducing complex data into simple table structures </li></ul></ul><ul><li>Optimizes by </li></ul><ul><ul><li>Eliminate redundancy </li></ul></ul><ul><ul><li>Eliminate inconsistency dependency between tables </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    32. 32. Normalize Data <ul><li>Break data into smallest values possible </li></ul><ul><li>Assure data is not repeated </li></ul><ul><li>Break repeated data into separate tables </li></ul><ul><li>Avoid empty fields as much as possible </li></ul><ul><li>Consistent references in tables (naming convention) </li></ul>Copyright Crespo Technology Services Group, Inc.
    33. 33. De-normalization <ul><li>Definition </li></ul><ul><ul><li>Combining tables into a bigger table </li></ul></ul><ul><li>Uses </li></ul><ul><ul><li>Make queries run faster </li></ul></ul><ul><ul><li>Keep similar data together </li></ul></ul><ul><ul><li>Keep table structure simple </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    34. 34. Designate Primary and Foreign Keys <ul><li>Primary Key </li></ul><ul><ul><li>Field with unique values </li></ul></ul><ul><ul><li>Values identify each record </li></ul></ul><ul><ul><li>Used to create relationships between tables </li></ul></ul><ul><ul><li>Can be of any data type except memo, OLE or Attachment </li></ul></ul><ul><ul><li>Can never be blank </li></ul></ul><ul><ul><li>Values do not change or have duplicates </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    35. 35. Designate Primary and Foreign Keys <ul><li>Composite Key </li></ul><ul><ul><li>Made of the union of two unique fields </li></ul></ul><ul><li>Foreign Key </li></ul><ul><ul><li>Field that relates to primary key of another table </li></ul></ul><ul><li>Primary key acts as record index </li></ul><ul><li>Helps implement relationship between tables </li></ul><ul><li>Foreign key helps establish relationship with primary key </li></ul>Copyright Crespo Technology Services Group, Inc.
    36. 36. Designate Primary and Foreign Keys <ul><li>Class Exercise </li></ul><ul><ul><li>Define a primary and foreign key for each table. This field identifies each individual in a unique way. </li></ul></ul><ul><ul><li>List any field that contains a limited list of items. Example: City or state. </li></ul></ul><ul><ul><li>Define default values when possible. Example: 90% of students will be from PR. </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    37. 37. Determine Table Relationships <ul><li>Representation of association among data contained within tables </li></ul><ul><li>Helps poll matching fields </li></ul><ul><li>One-to-one relationship </li></ul><ul><ul><li>Primary key and foreign key are unique </li></ul></ul><ul><li>One-to-many relationship </li></ul><ul><ul><li>Primary key unique with many foreign key values </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    38. 38. Building a Database Copyright Crespo Technology Services Group, Inc.
    39. 39. Create a Database <ul><li>To create a database </li></ul><ul><ul><li>Open Access 2007 </li></ul></ul><ul><ul><li>In the Getting Started screen select blank database </li></ul></ul><ul><ul><li>Write database name and select location. </li></ul></ul><ul><ul><li>Press Create </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    40. 40. Create a Table <ul><li>Access creates a new table when a new blank database is created </li></ul><ul><li>New tables can be created by selecting the table icon on the Create tab </li></ul>Copyright Crespo Technology Services Group, Inc.
    41. 41. Table Views <ul><li>Tables can be viewed in several ways. The two most common views are: </li></ul><ul><ul><li>Datasheet: This is the default view and presents record values </li></ul></ul><ul><ul><li>Design: This presents the table and field properties but does no present record values </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    42. 42. Field Insertion Feature <ul><li>Allows adding new fields from datasheet view </li></ul><ul><ul><li>Write the field name in the column header </li></ul></ul><ul><ul><li>Repeat for each field </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    43. 43. Data Types <ul><li>Text: Contains characters up to 255 </li></ul><ul><li>Memo: Advanced text field. Can hold up to 2 GB of data with rich text formatting </li></ul><ul><li>Numbers: Numeric values up to 16 bytes </li></ul><ul><li>Date/Time: Stores and manipulates date and time values </li></ul><ul><li>Currency: Monetary values </li></ul><ul><li>AutoNumber: Automatically creates a numeric value with new records. Are usually used as primary keys. </li></ul><ul><li>Yes/No: Boolean information (true or false) </li></ul><ul><li>Hyperlink: Stores web addresses </li></ul><ul><li>Attachment: Add files to a record </li></ul><ul><li>Multivalued: Can have more than one value </li></ul>Copyright Crespo Technology Services Group, Inc.
    44. 44. New Fields <ul><li>Fields can be added through: </li></ul><ul><ul><li>Field insertion feature </li></ul></ul><ul><ul><li>Design view </li></ul></ul><ul><li>Multivalued fields are added through the Lookup Wizard </li></ul>Copyright Crespo Technology Services Group, Inc.
    45. 45. Creating Tables <ul><li>Create the tables for the books circulation class exercise </li></ul><ul><li>Use the datasheet view as well as the design view </li></ul>Copyright Crespo Technology Services Group, Inc.
    46. 46. Table Maintenance <ul><li>Tables can be: </li></ul><ul><ul><li>Deleted </li></ul></ul><ul><ul><li>Renamed </li></ul></ul><ul><ul><li>Exported </li></ul></ul><ul><ul><li>Add a description in the Table Properties Dialog </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    47. 47. Table Properties <ul><li>Allows for a detailed description of the table </li></ul><ul><li>Presents information about the table </li></ul><ul><ul><li>Create date </li></ul></ul><ul><ul><li>Modified date </li></ul></ul><ul><li>Allows to hide a table </li></ul><ul><li>Allows for row tracking when used by multiple simultaneous users </li></ul>Copyright Crespo Technology Services Group, Inc.
    48. 48. Referential Integrity <ul><li>Process to ensure data validity across two tables </li></ul><ul><li>It is enforced by ensuring values in a foreign field have corresponding values in the primary key </li></ul><ul><li>Referential integrity prevents the entering of invalid data </li></ul><ul><li>Benefits of Referential Integrity </li></ul><ul><ul><li>Avoid data loss </li></ul></ul><ul><ul><li>Avoid updating data </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    49. 49. Referential Integrity <ul><li>Referential integrity between two table can be set if: </li></ul><ul><ul><li>Both tables are in the same database </li></ul></ul><ul><ul><li>The matching field is a primary key in one table or has a unique index </li></ul></ul><ul><ul><li>The related fields have the same data type </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    50. 50. Table Relationships <ul><li>In the Database Tools tab select relationships </li></ul><ul><li>If no relationship exists, Access brings the Show Tables or Queries dialog to add them to the relationship </li></ul><ul><li>Once added, drag the primary key to the foreign key. </li></ul><ul><li>This brings the Edit relationships dialog </li></ul><ul><li>Referential integrity can be enforced here </li></ul><ul><li>A line is drawn between tables to indicate relationship </li></ul>Copyright Crespo Technology Services Group, Inc.
    51. 51. Table Relationships <ul><li>Create the table relationships for the books circulation class exercise </li></ul><ul><li>Enforce referential integrity as required </li></ul>Copyright Crespo Technology Services Group, Inc.
    52. 52. Save a Database in a Previous Version <ul><li>In the Office Button menu select Save As </li></ul><ul><li>There are several database format available : </li></ul><ul><ul><li>Access 2007 </li></ul></ul><ul><ul><li>Access 2002-2003 </li></ul></ul><ul><ul><li>Access 2000 </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    53. 53. Managing Data in a Table Copyright Crespo Technology Services Group, Inc.
    54. 54. Modifying Data <ul><li>Users can: </li></ul><ul><ul><li>Search for records </li></ul></ul><ul><ul><li>Replace Data in records </li></ul></ul><ul><ul><li>Add records </li></ul></ul><ul><ul><li>Delete Records </li></ul></ul><ul><ul><li>Modify Records </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    55. 55. Find Command <ul><li>Helps locate specific data. </li></ul><ul><li>Has various find options </li></ul>Copyright Crespo Technology Services Group, Inc.
    56. 56. Replace Command <ul><li>Helps replace specific data with new data </li></ul><ul><li>Has various replace options </li></ul>Copyright Crespo Technology Services Group, Inc.
    57. 57. Totals Features <ul><li>Provides simple math functions to the tables </li></ul>Copyright Crespo Technology Services Group, Inc.
    58. 58. Sorting Records <ul><li>Can sort data </li></ul><ul><ul><li>Ascending </li></ul></ul><ul><ul><li>Descending </li></ul></ul><ul><li>The order is based on </li></ul><ul><ul><li>Numeric information </li></ul></ul><ul><ul><li>Alphanumeric information </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    59. 59. Subdatasheets <ul><li>Datasheet nested within another datasheet </li></ul><ul><li>Contains data related to the first datasheet </li></ul><ul><li>Subdatasheet presence is indicated by + sign on the row </li></ul>Copyright Crespo Technology Services Group, Inc.
    60. 60. Copyright Crespo Technology Services Group, Inc.
    61. 61. Managing Data <ul><li>Class Exercise </li></ul><ul><ul><li>Fill the created tables with at least 10 records each </li></ul></ul><ul><ul><li>Delete at least 1 record from each table </li></ul></ul><ul><ul><li>Modify at least 1 record from each table </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    62. 62. Queriyng a Database Copyright Crespo Technology Services Group, Inc.
    63. 63. Querying a Database <ul><li>Looking for data in a database is difficult unless there is mechanism for extracting and isolating is </li></ul><ul><li>A database is effective when data can be retrieved as easily as it was entered </li></ul><ul><li>Queries greatly reduce the data retrieval time </li></ul>Copyright Crespo Technology Services Group, Inc.
    64. 64. Filter Feature <ul><li>Display only the records that match your criteria </li></ul><ul><li>Filter data based on the values in a column </li></ul><ul><li>Filter by: </li></ul><ul><ul><li>Text for the text data type </li></ul></ul><ul><ul><li>Number filters for the number data type </li></ul></ul><ul><ul><li>Date filters for the date data type </li></ul></ul><ul><li>Multiple filters can be applied to a table at the same time. </li></ul>Copyright Crespo Technology Services Group, Inc.
    65. 65. Query Wizard <ul><li>Select Query Wizard </li></ul><ul><li>Select type of query </li></ul><ul><li>Select query fields </li></ul><ul><li>Request query detail </li></ul><ul><li>Add title. Click Finish </li></ul><ul><li>Query result shown </li></ul>Copyright Crespo Technology Services Group, Inc.
    66. 66. Query Types <ul><li>Simple: Can select fields from multiple tables and queries </li></ul><ul><li>Crosstab: Can perform simple calculations </li></ul><ul><li>Find duplicates: Can find duplicate field values </li></ul><ul><li>Find unmatched: Finds records in a table with no related records on another table </li></ul>Copyright Crespo Technology Services Group, Inc.
    67. 67. Query Design Context Tab <ul><li>Query Design </li></ul><ul><ul><li>Results </li></ul></ul><ul><ul><li>Query Type </li></ul></ul><ul><ul><li>Query Setup </li></ul></ul><ul><ul><li>Show/Hide </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    68. 68. Query Object Views <ul><li>Design View </li></ul><ul><li>SQL View </li></ul><ul><li>Datasheet View </li></ul><ul><li>PivotTable View </li></ul><ul><li>PivotChart View </li></ul>Copyright Crespo Technology Services Group, Inc.
    69. 69. Show Tables Dialog Box <ul><li>The Show Tables dialog box is found on the Query Design Context Tab </li></ul><ul><li>The user can select to view: </li></ul><ul><ul><li>Tables </li></ul></ul><ul><ul><li>Queries </li></ul></ul><ul><ul><li>Both </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    70. 70. Create a Query <ul><li>Class Exercise </li></ul><ul><ul><li>Create a query of students </li></ul></ul><ul><ul><li>Create a query of books </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    71. 71. Query Criteria <ul><li>Search condition to retrieve specific information </li></ul><ul><li>These are used to compare criteria value with values in the column </li></ul><ul><li>Calculations can also be performed </li></ul>Copyright Crespo Technology Services Group, Inc.
    72. 72. Comparison Operators <ul><li>Symbols used to compare two values </li></ul><ul><li>When set in criterion establishes results after comparison </li></ul><ul><li>The result is always a true or false </li></ul>Copyright Crespo Technology Services Group, Inc.
    73. 73. List of Comparison Operators <ul><li>= : Equals </li></ul><ul><li>< : Less than </li></ul><ul><li><= : Less than or equal to </li></ul><ul><li>> : Greater than </li></ul><ul><li>>= : Greater than or equal to </li></ul><ul><li><> : Not equal to </li></ul><ul><li>Between And : Within a range </li></ul><ul><li>Is Null : Null values </li></ul>Copyright Crespo Technology Services Group, Inc.
    74. 74. Conditional Operators <ul><li>Test for the truth of a comparison </li></ul><ul><li>The result is always a true or false </li></ul><ul><li>Parenthesis can be used to change the order of evaluation </li></ul>Copyright Crespo Technology Services Group, Inc.
    75. 75. List of Conditional Operators <ul><li>AND : True if both conditions are true </li></ul><ul><ul><li>Example: >2 AND <>10 </li></ul></ul><ul><li>OR : True if either condition is true </li></ul><ul><ul><li>Example: <10 OR >100 </li></ul></ul><ul><li>NOT : True if the single instance is not true </li></ul><ul><ul><li>Example: Not Between 2 and 10 </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    76. 76. Create a Query <ul><li>Class Exercise </li></ul><ul><ul><li>Create a query of students that have books out </li></ul></ul><ul><ul><li>Create a query of books that are past due to be returned </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    77. 77. Calculated Fields <ul><li>Values come from calculations with other fields </li></ul><ul><li>Are not entered by the user but are created when query runs </li></ul><ul><li>The values may change if the expression is changed </li></ul>Copyright Crespo Technology Services Group, Inc.
    78. 78. Arithmetic Operators Copyright Crespo Technology Services Group, Inc. Arithmetic Operator Description Example + Addition value1 + value 2 - Subtraction value1 - value 2 * Multiplication value1 * value 2 / Division value1 / value 2
    79. 79. Expressions <ul><li>Values come from calculations with other fields </li></ul><ul><li>Are not entered by the user but are created when query runs </li></ul><ul><li>The values may change if the expression is changed </li></ul>Copyright Crespo Technology Services Group, Inc.
    80. 80. Expression Builder <ul><li>Allows users to select objects and use operators and functions to build formulas </li></ul><ul><li>These can be used in queries or reports </li></ul>Copyright Crespo Technology Services Group, Inc.
    81. 81. Property Sheet Pane <ul><li>Allows users to set properties to objects </li></ul><ul><li>These properties can be of Structure, appearance and behavior </li></ul><ul><li>Features include Description, Format, Decimal Places, Input Mask, Caption and Mart Tags </li></ul>Copyright Crespo Technology Services Group, Inc.
    82. 82. Group by Functions <ul><li>Perform calculations on a group of values </li></ul><ul><li>Can be used with any number of values and result in a single value </li></ul><ul><li>Aggregate functions are used to group records in all databases </li></ul>Copyright Crespo Technology Services Group, Inc.
    83. 83. Designing Forms Copyright Crespo Technology Services Group, Inc.
    84. 84. Designing Forms <ul><li>Datasheet view </li></ul><ul><ul><li>Can be difficult to view large amounts data </li></ul></ul><ul><ul><li>Searching can be time consuming </li></ul></ul><ul><ul><li>Can lead to errors by misreading a value </li></ul></ul><ul><li>Access forms </li></ul><ul><ul><li>Allows to view and edit one record at a time </li></ul></ul><ul><ul><li>Is easier to view </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    85. 85. Form Views Copyright Crespo Technology Services Group, Inc. View Description Design A static view that helps design a form. Form A dynamic view data within the developed form Layout An interactive and dynamic view that you can use to create a form
    86. 86. Form Sections <ul><li>Perform calculations on a group of values </li></ul><ul><li>Can be used with any number of values and result in a single value </li></ul><ul><li>Aggregate functions are used to group records in all databases </li></ul>Copyright Crespo Technology Services Group, Inc.
    87. 87. Group by Functions <ul><li>Header: Displays Title </li></ul><ul><li>Detail: Displays fields </li></ul><ul><li>Footer: Displays additional information </li></ul>Copyright Crespo Technology Services Group, Inc.
    88. 88. Form Creation Tools Copyright Crespo Technology Services Group, Inc. Form Creation Tool Description Form Creates a form with all fields in a table Form Design Helps you create a form in Design view Split Form Lets you view the form in Form view and Datasheet view simultaneously Multiple Items Lets you view multiple records from the table in the form of a spreadsheet PivotChart Helps you create a form in PivotChart view Blank Form Use a blank form to build a form from scratch Form Wizard A tool that helps you through the process of creating a form
    89. 89. Modifying the Design of a Form <ul><li>Can be dome by modifying the TAB order </li></ul><ul><li>Add, delete or modify controls </li></ul><ul><ul><li>Bound: Associated to a field in the table or query </li></ul></ul><ul><ul><li>Unbound: Not associated with data </li></ul></ul><ul><ul><li>Calculated: Displays data obtained by evaluating an expression </li></ul></ul>Copyright Crespo Technology Services Group, Inc.
    90. 90. Generating Reports Copyright Crespo Technology Services Group, Inc.
    91. 91. Report Views Copyright Crespo Technology Services Group, Inc. View Description Design Ability to add, modify or delete controls. Cannot view data. Report View data without ability to make changes to controls Layout View data and ability to make changes to controls Print Preview Check how the report will print
    92. 92. Report Sections <ul><li>Header: Displays Title </li></ul><ul><li>Detail: Displays fields </li></ul><ul><li>Footer: Displays additional information </li></ul>Copyright Crespo Technology Services Group, Inc.
    93. 93. Report Creation Tool Copyright Crespo Technology Services Group, Inc. View Description Report Creates a report with all the fields Blank Report Create a blank report from scratch Report Design Helps you create a report in Design view Report Wizard Helps create a report by following step-by-step instructions
    94. 94. Report Creation Wizard Copyright Crespo Technology Services Group, Inc.
    95. 95. Report Printing Copyright Crespo Technology Services Group, Inc.

    ×