Creating Queries Expression Exercise- Criteria and Calculated Fields

Slides:



Advertisements
Similar presentations
Exploring Microsoft Access 2003 Chapter 5 One-to-Many Relationships : Subforms and Multiple Table Queries.
Advertisements

With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
1 Microsoft Access 2002 Tutorial 6 – Creating Custom Reports.
FIS 318/618: Financial Systems & Databases Forms and Reports Oakland University School of Business Administration Accounting and Finance Joe Callaghan.
1 Computing for Todays Lecture 16 Yumei Huo Fall 2006.
Access Tutorial 4 Creating Forms and Reports
Access 2007 ® Use Databases How can Microsoft Access 2007 help you to enter and organize information?
XP New Perspectives on Microsoft Access 2002 Tutorial 41 Microsoft Access 2002 Tutorial 4 – Creating Forms and Reports.
Creating Custom Reports. Objectives View, filter, and copy report information in Report view Modify a report in Layout view Modify a report in Design.
With Microsoft Office 2007 Introductory© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Introductory.
® Microsoft Access 2010 Tutorial 7 Creating Custom Reports.
Microsoft Access Queries Birgül Kutlu. SORTING AND FILTERING Sorting and filtering allow you to view records in a table in different ways such as: reordering.
PgP MIS 202 Access Overview 1 Microsoft Access Introduction to Relational Databases Powerful tool to collect and analyze business data, facilitates decision-
FIRST COURSE Access Tutorial 4 Creating Forms and Reports.
CREATING FORMS AND REPORTS By: Dr. Ennis-Cole. OBJECTIVES: Create and change a form with the Wizard Navigate and find data using a form Preview and print.
Microsoft Office Illustrated Introductory, Premium Edition Using Tables and Queries.
McGraw-Hill/Irwin The Interactive Computing Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Office 2002 Lesson 4 Creating.
Access Chapter 5-Table Tricks, Advanced Queries and Custom Forms.
Access Chapter 7- Access Custom Reports. PgP MIS 342 Access7-2 Custom Reports  Banded report writer Report, Page(s) and Group(s) sections can have both.
MS-Access XP Lesson 4. Modifying Queries 1.Select query in queries 2.Click design button or Right click on query and click design view 3.Change query.
Microsoft Access 2013 Create Professional Quality Output with Reports Chapter 5.
Access Chapter 4-Form and Report Basics. PgP MIS 342 Access4-2 Forms  Used to maintain (add/delete/edit) the data in underlying tables  Wizards-show.
Microsoft Access Creating Queries Expression Exercise- Criteria and Calculated Fields.
Microsoft Access Lesson 5 Lexington Technology Center February 25, 2003 Bob Herring On the Web at
Microsoft® Access Generate forms quickly 1 Modify controls in Layout View 2 Work with form sections 3 Modify controls in Design View 4 Add calculated.
XP New Perspectives on Microsoft Office Access 2003 Tutorial 4 1 Microsoft Office Access 2003 Tutorial 4 – Creating Forms and Reports.
1 New Perspectives on Microsoft Access 2016 Module 4: Creating Forms and Reports.
Databases: What they are and how they work
Prepared By: Bobby Wan Microsoft Access Prepared By: Bobby Wan
Access Reports.
Microsoft Access 2007 – Level 2
Exploring Excel Chapter 5 List and Data Management: Converting Data to
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Microsoft Access – Tutorial 3
Microsoft Office Access 2010 Lab 2
Access Tutorial 3 Maintaining and Querying a Database
Microsoft Office Access 2003
Developing Forms and Subforms.
Calculated Fields Exercises Queries
Microsoft Access 2016 Create Professional Quality Output with Reports
Forms.
Access Tutorial 4 Creating Forms and Reports
Larry Reaves October 9, 2013 Day 16: Access Chapter 2 Larry Reaves October 9, 2013.
Microsoft Office Illustrated Fundamentals
Microsoft Access 2003 Illustrated Complete
Creating Custom Reports
Access Tutorial 4 Creating Forms and Reports
Tutorial 4 Creating Forms and Reports
Access Tutorial 7 Creating Custom Reports
Microsoft Office Access 2003
Microsoft Office Access 2003
Database Applications – Microsoft Access
Create Professional Quality Output with Reports Chapter 5
Exploring Microsoft Access 2003
Exploring Microsoft® Access® 2016 Series Editor Mary Anne Poatsy
Data Types and Field Properties
Action Query Exercises
Access Chapter 6- Custom Forms.
Introduction to Database Programs
RAHUL KAVI October 22, 2013 Day 20: Access Chapter 4 RAHUL KAVI October 22, 2013.
Exploring Microsoft Office Access 2010
Access Tutorial 4 Creating Forms and Reports
Microsoft Office Access is the best –selling personal computer database management system. What is Access?
Creating Reports.
Microsoft Office Illustrated Fundamentals
List of Values and Parameter Queries
Chapter 5-Lookup Table Exercise
Tutorial 7 Creating Custom Reports
Assignment 3 Querying and Maintaining a Database
Tutorial 4 Creating Forms and Reports
Presentation transcript:

Creating Queries Expression Exercise- Criteria and Calculated Fields Microsoft Access Creating Queries Expression Exercise- Criteria and Calculated Fields

Using Northwind.mdb Orders Table

PgP MIS 202 Access Overview 1. Create Expression Locate all Ship Names that contain a “q” anywhere in the name field PgP MIS 202 Access Overview

PgP MIS 202 Access Overview Criteria Like "*q*" PgP MIS 202 Access Overview

PgP MIS 202 Access Overview 2. Create Expression Locate all Ship Postal Codes beginning with 050 PgP MIS 202 Access Overview

PgP MIS 202 Access Overview Criteria Like “050*” PgP MIS 202 Access Overview

PgP MIS 202 Access Overview 3. Create Expression Locate all Freight charges over $100.00, sort results in Descending Order PgP MIS 202 Access Overview

PgP MIS 202 Access Overview Criteria >100 PgP MIS 202 Access Overview

PgP MIS 202 Access Overview 4. Create Expression Locate all orders Shipped between 9/1/96 and 9/30/96 Sort Ascending by Shipped Date PgP MIS 202 Access Overview

PgP MIS 202 Access Overview Criteria Between #9/1/96# and #9/30/96# PgP MIS 202 Access Overview

PgP MIS 202 Access Overview 5. Create Expression Number of days before today an order shipped Sort Descending PgP MIS 202 Access Overview

PgP MIS 202 Access Overview Calculated field DaysSinceShip: Date()-[ShippedDate] PgP MIS 202 Access Overview

Using Northwind.mdb Order Details table

PgP MIS 202 Access Overview Create Expression Locate all orders where Quantity is an odd number Hint: search help (Find tab) for functions that contain the word “remainder” PgP MIS 202 Access Overview

PgP MIS 202 Access Overview Criteria [Quantity] mod 2 <> 0 PgP MIS 202 Access Overview

Create Calculated Field Total discounted amount is greater than $1000.00 PgP MIS 202 Access Overview

PgP MIS 202 Access Overview Calculated Field Discounted Amount: UnitPrice * Quantity * Discount With criteria: > 1000 PgP MIS 202 Access Overview

Using Northwind.mdb Employees table

Create Calculated Field Determine employee seniority PgP MIS 202 Access Overview

PgP MIS 202 Access Overview Calculated Field Seniority: Date()-[hiredate] Or Years seniority: DateDiff("yyyy",[hiredate],Date()) PgP MIS 202 Access Overview

Delivering the data as required-tabular, graphical… Microsoft Access Form and Report Basics Delivering the data as required-tabular, graphical…

PgP MIS 202 Access Overview Forms Used to maintain (add/delete/edit) the data in underlying tables Finding data using Find dialog box Note available wildcard characters *, ?, [], !, -,# Wizards-show typical layouts AutoFormat, to try different layouts quickly PgP MIS 202 Access Overview

PgP MIS 202 Access Overview Wildcard Characters PgP MIS 202 Access Overview

PgP MIS 202 Access Overview Forms and SubForms Use to show data from related tables Tables have one to many relationship Example, View the many orders for one customer Display lot of data in a small space PgP MIS 202 Access Overview

PgP MIS 202 Access Overview Forms and SubForms Main form can have any number of subforms if you place each subform on the main form. Can nest up to ten levels of subforms. Could have a main form that displays customers, a subform that displays orders, and another subform that displays order details PgP MIS 202 Access Overview

Form/SubForms Example Open Northwind.mdb, Forms, ‘Customer Orders’ PgP MIS 202 Access Overview

Form/SubForms Example Form contains Customers table fields: CompanyName Country This form is linked to subForm ‘Customer Orders Subform1’ PgP MIS 202 Access Overview

Form/SubForms Example Subform1 contains Orders table fields: OrderID RequiredDate This subform is linked to subForm ‘Customer Orders Subform2’ PgP MIS 202 Access Overview

Form/SubForms Example Subform2 contains OrderDetailsExtended query fields: ProductName UnitPrice Quantity Discount Extended Price (a calculated field) Note-this query is based on the tables ‘Order Details’ and ‘Products’ PgP MIS 202 Access Overview

Form/Subform Relationships PgP MIS 202 Access Overview

PgP MIS 202 Access Overview Reports Typically destined for printed output Can be based on table(s) or query or SQL statement Report Wizard can do most of the work For the finishing touches modify in Design View PgP MIS 202 Access Overview

Reports and Forms- Design View Wizards can do most of the work, but to tailor forms/reports to what you want, you must understand how to modify them in Design View Examine property settings-similar to Visual Basic forms and controls PgP MIS 202 Access Overview

Report and Form Graphics Graphics can improve appearance, but Possible performance penalty due to way Access stores graphic images Be aware of “Image” object “SizeMode” property settings of clip, stretch, zoom PgP MIS 202 Access Overview