Introduction to Database Concepts and Access Using Access 2003 - Foundation.

Slides:



Advertisements
Similar presentations
Microsoft Access.
Advertisements

MS® PowerPoint.
Benchmark Series Microsoft Access 2010 Level 1
Microsoft Office 2007 Access Chapter 3 Maintaining a Database.
EXCEL Spreadsheet Basics
Working with Large Worksheets, Charting, and What-If Analysis
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
XP New Perspectives on Microsoft Office Excel 2003, Second Edition- Tutorial 5 1 Microsoft Office Excel 2003 Tutorial 5 – Working With Excel Lists.
Creating Custom Forms. 2 Design and create a custom form You can create a custom form by modifying an existing form or creating a new form. Either way,
XP Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Collecting Data for Well-Designed Forms Chapter 4 “Making.
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.
Management Information Systems MS Access 2003 By: Mr. Imdadullah Lecturer, Department of M.I.S. College of Business Administration, KSU.
Access Tutorial 3 Maintaining and Querying a Database
1 Access Lesson 1 Microsoft Access Basics Microsoft Office 2010 Introductory Pasewark & Pasewark.
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.
XP 1 Microsoft Office Excel 2003 Tutorial 3 – Working With Excel Lists.
1 Access Lesson 3 Creating Queries Microsoft Office 2010 Introductory.
Chapter 3 Maintaining a Database
XP Chapter 4 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Collecting Data for Well-Designed Forms Chapter 4 “Making.
Tutorial 6 Using Form Tools and Creating Custom Forms
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.
® Microsoft Access 2010 Tutorial 6 Using Form Tools and Creating Custom Forms.
1 Access Lesson 1 Microsoft Access Basics Microsoft Office 2010 Introductory.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
Working with a Database
11 Exploring Microsoft Office Excel 2007 Chapter 4: Working with Large Worksheets and Tables Chapter 04 - Lecture Notes (CSIT 104)
© Paradigm Publishing, Inc Access 2010 Level 2 Unit 1Advanced Tables, Relationships, Queries, and Forms Chapter 4Creating and Using Custom Forms.
Using Form Tools and Creating Custom Forms Microsoft Access 2010.
Microsoft Access Data Base Application. A Few Terms Database – A collection of related information. Database – A collection of related information. Field.
Microsoft Access Lesson 1 Lexington Technology Center February 11, 2003 Bob Herring On the Web at
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
Microsoft Access 2000 Presentation 2 Creating Databases Part I (Creating Tables)
XP 1 Microsoft Access 2003 Introduction To Microsoft Access 2003.
© 2001 ComputerPREP, Inc. All rights reserved. Access 2000: Module I.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
® Microsoft Office 2010 Access Tutorial 3 Maintaining and Querying a Database.
Key Applications Module Lesson 21 — Access Essentials
COMPREHENSIVE Access Tutorial 6 Using Form Tools and Creating Custom Forms.
Chapter 17 Creating a Database.
Introduction to Database Concepts and Access Using Access Foundation/Intermediate.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
HSC IT Center Training University of Florida Introduction to Database Concepts and Microsoft Access 2007 Health Science Center IT Center – Training
Microsoft Office 2007 Access Chapter 3 Maintaining a 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.
Microsoft Access 2010 Chapter 8 Advanced Form Techniques.
Course ILT Forms and queries Unit objectives Create forms by using AutoForm and the Form Wizard, and add or modify form headers and footers Open and enter.
Microsoft Access. Microsoft access is a database programs that allows you to store retrieve, analyze and print information. Companies use databases for.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Access 2003 Lab 2 Modifying a Table and Creating.
Microsoft Access 2000 Presentation 3 Creating Databases Part II (Creating Forms)
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Excel 2002 Working with Data Lists.
Work with Tables and Database Records Lesson 3. NAVIGATING AMONG RECORDS Access users who prefer using the keyboard to navigate records can press keys.
Key Applications Module Lesson 22 — Managing and Reporting Database Information Computer Literacy BASICS.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 2 ® Building Queries.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms.
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.
Getting Started in Access 1 Using an existing Database Database Window Table Design View Parts of a Table Views in Access Navigating in Access Entering.
Course Contents Overview: Database basics Lesson 1: Benefits of using a database Lesson 2: Table that data Lesson 3: Analyzing, viewing, and reporting.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall. 1 Skills for Success with Microsoft ® Office 2007 PowerPoint Lecture to Accompany.
1 Word Processing Intermediate Using Microsoft Office 2000.
Lecturer: Dalia Mirghani
Microsoft Access 2007 – Level 2
Maintaining a Database
Practical Office 2007 Chapter 10
Building a User Interface with Forms
Chapter 7 Advanced Form Techniques
Microsoft Office Access 2003
Microsoft Office Access 2003
Presentation transcript:

Introduction to Database Concepts and Access Using Access Foundation

What is Data? Data - facts made up of text, numbers, images and sounds - Murray Information is the meaning given to data in the way it is interpreted: Mr Murray is a sales person whose basic annual salary is $15,000 and whose commission rate is 10%

What is a Database? A structured collection of related data An address book, a Telephone directory, a Timetable etc.

Basic Concepts File –A set of related records Record –A collection of Data about an individual item Field –A single item of data common to all records Name: David Murray Company: CCT Tel: Name: David Murray

The Telephone Directory - An Example of a Database Telephone Directory Aardvark A.A. Railway Cuttings Cheltenham (01242) Aardvark S.F. 23 High Street Cirencester (01285) Aaron A.M. The Paddock Cheltenham (01242) Records File Name Fields

Tables and Relationships Customer makes order Order consists of order details make consist of deal with have

Types of Relationships One-to-many One-to-one Many-to-many resolved into two one-to-many One-to-one Many-to-many One - to - many

Why Use an Electronic Database? Speed Ease of Use Versatility

Why Use Access? Familiar look and feel of Windows Easy to start building simple databases Can build sophisticated systems True relational database Allows prototyping

An Introduction to Access Each column represents a field within the record Each line represents a record within the table

Introducing Access Tools Employees Customer Company Name Address City Telephone Contact Name Customers ReportsForms Queries Tables

Using Access as Part of Microsoft Office Professional Microsoft Office Professional includes: –Access –Word –Excel –PowerPoint –Outlook

Starting Microsoft Access Click on Microsoft Access in the Start menu Or if you have set up a shortcut on your Desktop, click on the Access shortcut icon

The Access Application Window

Review Questions

Access - Concepts, Terminology and Usage Using Access Foundation

Opening a Database To open a database once you have already started Access - Choose Open Database from the File menu - OR press CTRL+O - OR click on the Open Database icon on the toolbar To open a database when you start Access –Choose the Open an Existing Database button on the opening dialog, as illustrated

The Access Database Window Six tabbed cards provide access to all database objects –Select the object by clicking the tab Click a button to create a new object open an existing object design or modify an object

Closing a Database To close a database –Choose Close from the File menu –Or click on the Control menu and select Close –Or press CTRL+F4

Opening a Table To open a table - Click on the Table tab in the database window - Select the table you want - Click on the Open button

The Table Window A table opened from the database window appears as a datasheet Each row contains a separate record Each column contains a separate field

Exploring the Table To move through records and fields use TAB, SHIFT+TAB, HOME, END, CTRL+HOME, CTRL+END, PAGE UP, PAGE DOWN, and the arrow keys To move through records First recordPrevious recordNext recordLast record

Table Design View –To switch to Design View –To switch to Datasheet View

Introducing Queries A means of asking questions of your database Can look across a number of Tables

Introducing Forms A friendlier view of the database Used for data input, menus, display and printing

Types of Form

Opening an Existing Form To open a form Select Click Here

Form Design View A form can be viewed in –Datasheet view –Design view –Form View

Closing a Form To close a form –Click on the Windows Close icon (top-right) –Choose Close from the File menu –Or press CTRL+F4

Introducing Reports –Output of information from your database in the form of a printed report –Allows you to group and summarize information –Can be previewed to the screen prior to printing –Can include logos, graphs and drawings

Review Questions

Database Design and Table Creation Using Access Foundation

Design and Document Your Database A designers best tools are a pencil and paper –It is important to plan what you are going to do The sooner you touch the computer the sooner youll make a mistake –If you dont plan you will often have to start again –Document what you are doing, will you remember what you did in three months time?

Questions To Ask Yourself What do I want? –(Outputs) What have I got? –(Inputs) What do I need to do to get there? –(Process)

Define Your Needs Draw a picture Write a description PRODUCTS CATEGORIES SUPPLIERS EMPLOYEES C.C. Toys ORDERS

Basic Design Rules Unique records Unique fields Functionally dependent fields Independent fields No calculated or derived fields Data is broken down into smallest logical parts RULES

Determine Relationships Customer makes many orders: one-to-many Order contains many products and products can appear on many orders: many-to-many Employee belongs to social club: one-to-one Get rid of many-to-many by introducing another table, e.g. Order Details onemany one

Creating a Database

Using the Table Wizard

Adding Fields Using the Table Wizard (1) BUSINESS Mailing List Contacts Customers Employees Products Orders Order Details Suppliers Categories Payments Invoices Invoice Details Projects... PERSONAL Addresses Guests Categories Household Inventory Recipes Plants Exercise Log Diet Log Wine List Rolls of File Photographs Authors Books... OR

Adding Fields Using the Table Wizard (2)

Creating a Table Without a Wizard OR

Adding Fields to a New Table Type Fieldname Choose Data Type Type Description Enter Field Properties

Field Properties

The Input Mask Property Allows you to specify the format of input Useful if input always follows a standard format –ZIP or Post codes –Telephone Numbers –National Insurance codes UK Post code –>LL09\ 0LL UK Telephone Number –\(99999") "000000

Setting a Primary Key In Table Design View –Select the field you wish to use as the Primary Key –Click on Primary Key Button

Saving a Table To save a table –Choose Save from the File menu –Enter a table name if this is the first time you have saved the table –Click OK

Adding Records to a Table Datasheet Click here and start typing Pressing TAB moves you to the next field When in the last field of the record pressing TAB moves you to the next record

Review Questions

Formatting a Table Using Access Foundation

Editing Records Many editing operations involve selection There are many ways to select fields and records Record selectors indicate the current status of the record Current record Record is selected Record is being edited Last (empty) record

Selecting Records With The Mouse Group of Records Click and drag across record selectors All Records Click here Single Record Click in the record selector

Selecting Records Using The Keyboard Single Record –Select the record required –Select the Edit menu (Alt+E) –Choose Select Record (L) All Records –Select the Edit menu (Alt+E) –Choose Select All Records (A) or –Press Ctrl+A

Selecting Fields With The Mouse Single Field –place the mouse at the beginning of the field (cross pointer) and click once Group of Fields –Select 1st field –Hold [Shift] + select last field or –Select and Drag

Selecting Columns With The Mouse To select a Field Column –Click the button above the column To select Adjacent Columns –Click the button above the column and drag across the columns required

Selecting Fields and Columns Using the Keyboard Single Field –Use the TAB key until the required field is selected (left to right) –Use Shift+TAB (right to Left) Adjacent Fields –Select the first field (as above) –Hold the Shift key –Move in the required direction using the cursor keys

Deleting Records and Fields Select the item(s) Press the Delete key BEWARE!

Viewing or Setting Datasheet Default Values To set defaults –Select the Tools drop down menu –Select the Options command –Select the Datasheet tab

Re-ordering Columns Within a Table Select Column to be moved –Click on Column button Click and drag to the new location –Note black bar Release and the column is moved

Re-Ordering Fields in the Table In Design View Select the Field to be moved –Click on the Field Select button Click and drag to a new location –Note black bar Release and the Field is moved

Changing Column Width and Row Height To size a Column –Move the mouse to point between the columns until this symbol is displayed –Click and drag to the width required and release Or –Click on the column header and right click –Select Column Width –Enter the column size or –Choose Best Fit

Hiding and Un-hiding Columns To hide a Column –Select the column(s) you wish to hide –Click the right mouse button –Select Hide Columns To show a Column –Select the Format menu –Choose Unhide Columns –Select the fields you wish to show –Select Close to action choices

Freezing Columns –Allows you to keep selected columns visible on-screen whilst you view columns off the screen To Freeze Columns –Select Columns –Click the right mouse button or Select the Format menu –Click Freeze Columns To Unfreeze Columns –Select the Format menu –Click Unfreeze All Columns

Formatting Datasheet Cells Cell Effects include: –Horizontal and vertical gridlines –Gridline and background colors –Cell effects - Flat, Raised and Sunken

Changing Datasheet Fonts Select Font from the Format drop down menu

Copying and Moving Fields and Records To copy or move fields and records –Select the field or record –Copy or move it to the Clipboard –Paste from the Clipboard Cut - move (Ctrl+X) Copy (Ctrl+C) Paste (Ctrl+V)

Another Look at the Database Window From the Database Window you can: –Copy, Rename and Delete objects –When you copy and paste a table you give it a different name

Printing –Choose Print Preview before you print

Review Questions

Relationships Using Access Foundation

Defining Relationships In order to set relationships you need to carry out three operations –Open the Relationships Window –Add the Tables –Set the Relationships

Opening the Relationship Window –Open the Database Window –Click on the Relationships icon on the toolbar

Adding Tables to the Relationships Window Click on the Show Table icon Select the table(s) required in order to build the relationship click on Add

Making Relationships –Click on the field in the primary table and drag to the corresponding field in the secondary table –The Edit Relationships window appears –Click on the Create button

Referential Integrity Referential integrity helps you ensure the relationships between records are valid It ensures you dont delete related data

Editing Relationships You can: –Display all relationships –Display only direct relationships –Delete a relationship –Remove a table from the Relationships window

Review Questions

Locating and Replacing Information Using Access Foundation

A Simple Search Open the table to search Click the Find icon Enter requirements into the dialog box Select Find First or Find Next

Wildcards Wildcard symbols are codes used to allow you to make complex searches for information The Symbols - any group of characters in this position ? - any single character in this position # - any single digit in this position [ ] - square brackets for inclusions [! ] - square bracket and exclamation marks for exclusions

Finding Specific Values Examples: Fr = Fred, Frank, Francis, France, French J?ne = June, Jane 199# = 1991,1992,1993, Jo[ha]n = John, Joan Min[!t] = Mine, Mind, Mink but not Mint

Find and Replace Click on the Replace command under the Edit drop down menu

Sorting Records Quick Sort allows you to quickly sort the table by your selected field The sort can be either ascending or descending

Sorting Records On More Than One Field Leftmost columns are sorted first

What is a Filter? Use a filter to temporarily filter out excess information –Filter out permanent employees To narrow your focus –One customer record Find records with complex criteria Sort records on more than one field and in more than one direction

Filtering Records By Selection Use Filters to get a subset of records sharing a common attribute Filter by Selection

Filtering Records by Form

Review Questions

Creating Simple Queries Using Access Foundation

What are Queries? Queries help you select information from tables or queries for a specific purpose You can select fields from records You can select records from a table or query You can select, summarize, update, delete, make new tables and append records to another table

Opening an Existing Query

Creating Queries Using the Simple Query Wizard

Creating Queries Without the Wizard

The Query Grid Record RestrictionsVisible Ordering Required Fields All Tables or queries (left to right)

Logical Operators in Criteria When setting criteria for queries you use logical operators to define what you require –= (Equals/Same) –< ( Less Than/Lower) –> (Greater Than/Higher) –<= (Less than or equal to) –>= (Greater than or equal to) –<> (Not equal to) –And –Or –Like

Text in Criteria - Wildcards Wildcard symbols are codes used to allow you to make complex searches for information The Symbols - any group of characters in this position ? - any single character in this position # - any single digit in this position [ ] - square brackets for inclusions [! ] - square bracket and exclamation marks for exclusions

Multiple Criteria and Alternative Criteria

Calculated Fields

Summary Queries Allows data to be viewed in summary form - Totals, counts - Max, min - First, last etc Group By one or more fields

Update Queries To specific values Arithmetic operations Update of all entries in a column or… Update of all entries matching the specified criteria

Append Queries Add the results of a query to a table

Make-Table Queries Use the results of a query to make a new table

Review Questions

Creating Calculated Fields Using Access Foundation

Creating Calculated Fields It is often more efficient to calculate information (e.g. for a report) when it is needed rather than holding it in a table Instead of having a monthly pay field, you could use an expression to calculate it from Salary divided by 12 Monthly Pay: [Employees]![Salary]/12

Using the Expression Builder Expression Box Element s that can be pasted into an expressi on Common Operators Object Folders Elements that can be pasted into an expression

Review Questions

Introducing Forms Using Access Foundation

Introduction to Forms –Forms provide a friendlier view of the database –Forms can be used to display, view and print data –Forms can be used to add, update and delete records –Forms can include pictures, drawings, different fonts and colors

Basic Form Layout Types Columnar Tabular Datasheet Justified

Creating a Form Using AutoForm

Creating a Form Using the Form Wizard

Different Ways of Viewing Forms

Review Questions

More About Creating Forms Using Access Foundation

Creating Forms Without Using the Form Wizard You can either start with a clean canvas ready to add controls Or you can start with a Wizard created form and modify it

The Form Design View Window

Manipulating Form Design You can modify a form by adding controls You can move, re-size and delete controls Remember the basic Windows rule! –First you select by clicking in the control –Then you manipulate

Types of Control Bound controls are bound to fields in tables or queries Unbound controls display information not held in the database Calculated controls are derived from expressions You can add controls using the toolbox

The Toolbox Using the Toolbox you can add controls –Open the toolbox by clicking on the toolbox icon –Position and size the toolbox to your preferences –Double click on the toolbox title bar to attach it to the other menus at the top of the screen

Creating a Combo Box Control Using the Toolbox Create a new form Click on the Combo Box icon Follow the on screen instructions

Changing Form Properties –Use the Property Sheet to view properties

Using Forms With Subforms –Use in a one-to-many relationship –The main form is the one –The subform is the many –You can have more than one subform –You can have subforms within subforms Form Subform

Creating a Form With a Subform

Controlling Data Input Data input should be easy and as error free as possible Default Value: automatically inserts a value for the field in each new record - it can be overtyped Validation Rule: limits acceptable ranges and values Validation Text: a message which appears when the rule is broken

Changing Tab Order Tab order governs the way you move from control to control on a form –Access automatically assigns a tab order based on the order in which the controls were created –Use the Tab Order dialog box to make changes

Adding Command Buttons Command buttons are used to initiate sets of actions such as opening the next form or running a particular query –Some of these actions, called event procedures, are built in to Access

Adding Page Breaks Use page breaks when your form covers more than one screen When the user presses Page Up or Page Down the form moves to the nearest page break

Switchboards

Review Questions

Reports Using Access Foundation

Introduction to Reports The traditional computer output Preferred by many people Use them for summarizing large amounts of data such as sales reports, stock lists, mailing lists, invoices etc.

Opening and Viewing Existing Reports

Printing Reports –You can print from the database window, from Design View or Print Preview

Creating Reports Using AutoReport

Creating Reports Using the Report Wizard

Using the Label Wizard

Using the Chart Wizard

Grouping Levels in Reports You can use Report Wizard to add grouping levels

Creating a Report Without a Wizard When you choose not to use a Wizard you are presented with a blank Report onto which you place controls, as when creating a Form

Creating Controls There are three types of controls –Bound controls are bound to fields in tables or queries –Unbound controls display information not held in the database –Calculated controls are derived from expressions You can add controls using the Toolbox

Setting Properties

Review Questions

File Management Within Access 2003 Using Access Foundation

Access 2003 Properties From the File menu, choose the Database Properties command –Displays information about the current database

Opening Files - A Review Sometimes known as loading a file –Note: A list of the four most recently opened files is displayed under the File menu –You can open these files by clicking on them

Selecting Files To mark sequential files –Click on the first file –Depress the Shift key –Click on the last file of the range you wish to select –Release the Shift key To mark non-sequential files –Click on a file –Depress the Ctrl key (and keep it depressed) –Click on other files you wish to select –Release the Ctrl key

Finding Files Using Access You may search for a file if you know either: –The file name –A word or phrase contained within the file

File - Commands and Settings Right clicking on a file displayed a pop-up menu of actions NOTE: The items displayed in this pop-up menu may change depending on what software you have installed on your PC

Copying, Deleting, Renaming Files and Creating Shortcuts Display the Open dialog box Select a file and right click using the mouse Select the required command from the pop- up displayed

Setting a Default Folder (Directory) By default normally points to My Documents May be customized as you wish

Review Questions