Mark Dixon Page 1 06 – Expression Builder. Mark Dixon Page 2 Session Aims & Objectives Aims –To use expressions to perform more complex calculations in.

Slides:



Advertisements
Similar presentations
Jeopardy Objects Navigation Buttons True/False Parts of a Report Vocabulary Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400 Q $500 Final.
Advertisements

1 Microsoft Access 2002 Tutorial 6 – Creating Custom Reports.
Chapter 6 UNDERSTANDING AND DESIGNING QUERIES AND REPORTS.
Creating Custom Reports. 2 Design and create a custom report You can easily create custom reports based on a table or query. There are seven sections.
Customizing Reports. Custom Reports A report is a formatted hardcopy of the contents of one or more tables from a database. Although you can format and.
XP New Perspectives on Microsoft Access 2002 Tutorial 61 Microsoft Access 2002 Tutorial 6 – Creating Custom Reports.
Microsoft Access 2013 ®® Tutorial 7 Creating Custom Reports.
Access Custom Forms & Reports. Topics  Designer Skills  Tab Order (Forms)  Copying Properties  Adding a Control  Adding Page Breaks  Adding Tab.
Access Lesson 2 Creating a Database
Mark Dixon Page 1 05 – Database Design: Sub-forms.
Mark Dixon Page 1 04 – Database Design: Forms. Mark Dixon Page 2 Session Aims & Objectives Aims –To allow easier data entry using forms Objectives, by.
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,
Mark Dixon Page 1 07 – Reports. Mark Dixon Page 2 Session Aims & Objectives Aims –To use reports to produce more readable documents Objectives, by end.
ISP 121 Week 3 Access Forms and Reports. Displaying Data – The Form One way to start a form is to use the Form Wizard What table or query are you creating.
Developing Effective Reports
Mark Dixon Page 1 02 – Queries: Query by Example.
FIS 318/618: Financial Systems & Databases Forms and Reports Oakland University School of Business Administration Accounting and Finance Joe Callaghan.
Tutorial 6 Using Form Tools and Creating Custom Forms
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Developing Effective Reports
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 4 – Creating New.
® Microsoft Access 2010 Tutorial 6 Using Form Tools and Creating Custom Forms.
XP New Perspectives on Microsoft Access 2002 Tutorial 51 Microsoft Access 2002 Tutorial 5 – Enhancing a Table’s Design, and Creating Advanced Queries and.
Creating your own form from scratch.. To create a custom form, you can modify an existing form or design and create a form from scratch. In either case,
Copyright 2007, Paradigm Publishing Inc. ACCESS 2007 Chapter 4 BACKNEXTEND 4-1 LINKS TO OBJECTIVES Query Design Query Criteria Modify a Query Using OR.
ACCESS Part 2. OBJECTIVES  Use the Form Wizard  Create a split form  Use Form Layout View  Add fields to a form  Modify form controls  Create calculations.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 7 – Adding and.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
McGraw-Hill/Irwin The O’Leary Series © 2002 The McGraw-Hill Companies, Inc. All rights reserved. Microsoft Access 2002 Lab 5 Creating Custom Forms.
Create Forms Lesson 5. Objectives Software Orientation The Forms group (below) is located on the Create tab in the Ribbon and can be used to create a.
Chapter 4: Create, Edit, and Perform Calculations in Reports Exploring Microsoft Office Access 2007.
Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! With Microsoft ® Office 2007 Intermediate Chapter.
Key Applications Module Lesson 21 — Access Essentials
ACCESS CHAPTER 5 FORMS AND REPORTS Learning Objectives: Build a simple form Add a label, text box, and list controls to a form Create a multi-table form.
Chapter 5-1. Chapter 5-2 Chapter 5: Database Forms and Reports Introduction Forms Reports.
Chapter 5-1. Chapter 5-2 Chapter 5: Database Forms and Reports Introduction Forms Reports.
IS201 Agenda: 10/15/2013 Do form and report exercise. Identify general guidelines for form and report design. Discuss a few key points about reports in.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
Microsoft Office XP Illustrated Introductory, Enhanced Reports Using.
Performing Calculations—1 of 2 In addition to using queries to retrieve, update, sort, and filter data in a database, you can use a query to perform calculations.
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.
Pasewark & Pasewark 1 Access Lesson 3 Creating Queries Microsoft Office 2007: Introductory.
Database Applications – Microsoft Access Lesson 7 Designing Custom Reports Updated 11/13 27 Slides in Presentation.
Pasewark & Pasewark 1 Access Lesson 5 Creating and Modifying Reports Microsoft Office 2007: Introductory.
Intro to Excel - Session 5.21 Tutorial 5 - Session 5.2 Working with Excel Lists.
Gold – Crystal Reports Introductory Course Cortex User Group Meeting New Orleans – 2011.
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 Forms and Reports.  One way to start a form is to use the Form Wizard  Let’s create a form for our Real Estate database, for the Listings table.
Customizing Reports Adding a Date to a Report Reference Window Adding a Date to a Report Display the report in the design view Click the Text Box Tool.
Excel part 5 Working with Excel Tables, PivotTables, and PivotCharts.
Modify Tables and FieldsModify Tables and Fields Lesson 4 © 2014, John Wiley & Sons, Inc.Microsoft Official Academic Course, Microsoft Word Microsoft.
Microsoft Access Lesson 5 Lexington Technology Center February 25, 2003 Bob Herring On the Web at
ACCESS 3. OBJECTIVES Calculated fields in query design Total option in query design Creating Forms.
Creating a multi-page form using Tab Controls. In today’s class, we will be using the Tab Control method to create the Form / SubForm combination.
Database Applications – Microsoft Access Lesson 6B Advanced Features on Custom Forms 1.
XP New Perspectives on Microsoft Office Access 2003, Second Edition- Tutorial 6 1 Microsoft Office Access 2003 Tutorial 6 – Creating Custom Forms.
Access Reports.
Tutorial 5: Working with Excel Tables, PivotTables, and PivotCharts
Building a User Interface with Forms
Microsoft Office Access 2003
Database Applications – Microsoft Access
Chapter 7 Advanced Form Techniques
Microsoft Office Access 2003
Microsoft Office Access 2003
Database Applications – Microsoft Access
Exploring Microsoft Access 2003
Microsoft Office Illustrated Introductory, Windows XP Edition
From and Report.
Exploring Microsoft Office Access 2010
Presentation transcript:

Mark Dixon Page 1 06 – Expression Builder

Mark Dixon Page 2 Session Aims & Objectives Aims –To use expressions to perform more complex calculations in forms Objectives, by end of this week’s sessions, you should be able to: –create an expression that calculates a value using existing table fields

Mark Dixon Page 3 What is an Expression… A set of Data and Operators Used to select data in a query –"PT0010" Or "PT0011" Or "PT0012" Used to calculate a value –[Unit Price]*[Quantity]

Mark Dixon Page 4 When do we use them… In queries –Select records with multiple values –Select records on a calculated value [Order Date] = Now() Sum([Unit Price]*[Quantity]) >= 100 In Reports or Form –Calculate values that are not stored Order Price = Sum([Unit Price]*[Quantity]) VAT = Order Price*0.175

Mark Dixon Page 5 Why use Expressions… Only store values that cannot be calculated from others –Wish to use these values –Use additional values for Reports Group Summary Report Summary Allows more flexibility when asking ‘questions’ –Specify more values in a query –Find range Less than Greater than etc.

Mark Dixon Page 6 Expression Builder… Let Access do the hard work Built in Expression Builder –Allow easy selection of values –Combination with operators Simple +, -, *, / More complex Sum, LIKE, And, Or, Not Icon

Mark Dixon Page 7 Expression Builder… Expression Basic Operators Objects Fields/Groups Values/Operators

Mark Dixon Page 8 Expression Builder… ‘Object’ currently in ‘Objects’ in Database General Function Constant Values Basic Operators (AND, OR, NOT, MOD <=, =) Commonly used Expression (Page N of M, Date/Time)

Mark Dixon Page 9 Building Expressions… Select vales from the windows –Use ‘Current Object’ for values on the query/form etc being worked on –When using multiple objects Select type from first window ‘Loaded’ from the expanded list ‘Values’ from other windows

Mark Dixon Page 10 Uses for Expressions… Calculate a value in a form –Sum of all the order lines –Sum of an order –VAT –Grand Total Selecting records from a Query –When stock falls below a certain level –All orders placed in the last month

Mark Dixon Page 11 An Example… Customer Order Form –Similar to the Order details form from last lecture –Views cost of order as well

Mark Dixon Page 12 An Example… Build the Order Details Main and Sub Order Form from lecture 5 –Include the cost information as well Products - Unit Price

Mark Dixon Page 13 New Sub Form Query… Main form query same as last weeks lecture

Mark Dixon Page 14 New Sub Form… Need to add line price –Extend form (left) –Add new Text Box (Details) and Label (Header)

Mark Dixon Page 15 Calculating Totals… Text box is Unbound –Open Properties –Set Name –Select Control Source –Click …

Mark Dixon Page 16 Calculating Totals… Expression Builder will launch –Must multiple [Quantity] and [Unit Price] –Select values from the relevant list object –Use buttons for simple operators

Mark Dixon Page 17 Calculating Totals… –Expression now displayed in the Control Source of the text box –Also in text of box Need to calculate total for all lines –This value will be stored in the footer –Extend footer and add text box and label –Rename –Set control source to Sum the Total values =Sum([Quantity] [Unit Price])

Mark Dixon Page 18 Final Sub Form…

Mark Dixon Page 19 Creating Main Form… Use same query as last weeks lecture –Create column form –Move fields –Add header –Insert new sub form –Link

Mark Dixon Page 20 Creating Main Form…

Mark Dixon Page 21 Main Form Totals… Need to add totals to main form –Sub Total –VAT –Grand Total Add 3 text boxes and labels to footer –Format as desired –Set Names and Captions as needed Sub Total –Already calculated on Sub Form footer VAT –=[SubTotal]* Grand Total –=[SubTotal]+ VAT]

Mark Dixon Page 22 Main Form Totals… Sub Total Box –Set control Source equal to OrderTotal on sub form

Mark Dixon Page 23 Sub Total Expressions…

Mark Dixon Page 24 VAT…

Mark Dixon Page 25 Grand Total…

Mark Dixon Page 26 Final Design…

Mark Dixon Page 27 Final Form…

Mark Dixon Page 28 Tutorial Exercise: Countries Task 1: Use a form and sub-form to enter data for Countries and Continents Task 2: Create a query that includes calculated fields for population density and population change