SlideShare a Scribd company logo
1 of 26
Download to read offline
Microsoft Access 2010- Illustrated

          Unit B:
Building and Using Queries
Objectives
    •     Use the Query Wizard
    •     Work with data in a query
    •     Use Query Design View
    •     Sort and find data
          (continued)




Microsoft Office 2010-Illustrated     2
Objectives (continued)
    •     Filter data
    •     Apply AND criteria
    •     Apply OR criteria
    •     Format a datasheet




Microsoft Office 2010-Illustrated   3
Using the Query Wizard

    • A query allows you to select a subset
      of fields and records from one or
      more tables and then present the
      selected data as a single datasheet
    • Because a query doesn’t physically
      store the data, a query datasheet is
      sometimes called a logical view of
      the data
Microsoft Office 2010-Illustrated             4
Using the Query Wizard
    • Technically, a query is a set of SQL
      (Structured Query Language)
      instructions, but because you can
      use Access query tools such as
      Query Design View, you are not
      required to know SQL to build or use
      Access queries



Microsoft Office 2010-Illustrated            5
Using the Query Wizard




Microsoft Office 2010-Illustrated   6
Working with Data in a Query
    • You enter and edit data in a query
      datasheet the same way you do in a
      table datasheet
    • Any edits you make in a query
      datasheet are permanently stored in
      the underlying tables, and are
      automatically updated in all views of
      the data in other queries, forms, and
      reports
Microsoft Office 2010-Illustrated             7
Working with Data in a Query




Microsoft Office 2010-Illustrated   8
Using Query Design View
    • Use Query Design View to:
            • Add, delete, or move the fields in an
              existing query, to specify sort orders, or
              to add criteria to limit the number of
              records shown in the resulting
              datasheet
            • Create a new query from scratch




Microsoft Office 2010-Illustrated                          9
Using Query Design View
    • Query Design View presents the
      fields you can use for that query in
      small windows called field lists
    • If you use the fields of two or more
      related tables in the query, the
      relationship between two tables is
      displayed with a join or link line
      identifying which fields are used to
      establish the relationship
Microsoft Office 2010-Illustrated            10
Using Query Design View




Microsoft Office 2010-Illustrated   11
Sorting and Finding Data
    • Works the same way for queries as it
      does for tables
    • Data can be sorted by clicking the list
      arrow on a datasheet’s column
      heading, then click a sorting option
    • Data can also be sorted by using the
      Sort and Find buttons on the Home
      tab

Microsoft Office 2010-Illustrated           12
Sorting and Finding Data




Microsoft Office 2010-Illustrated   13
Filtering Data
    • Filters provide a temporary way to
      display a subset of records that
      match given criteria
    • Filters are not used to calculate
      sums, averages, counts, etc.
    • Filters are removed when the
      datasheet is closed
    • Filters can, however, be saved as
      queries
Microsoft Office 2010-Illustrated          14
Filtering Data
    • Filter By Selection: Filtering by a
      given field value. Filters records for
      an exact match.
    • Filter By Form: Filters by comparative
      data




Microsoft Office 2010-Illustrated          15
Wildcards
    • Used to search for a pattern;
      represents any character
    • Entered as criteria
    • ? Used to search for a single
      character
    • * Used to search for any number of
      characters


Microsoft Office 2010-Illustrated          16
Filters vs. Queries




Microsoft Office 2010-Illustrated   17
Applying AND Criteria
    • AND criteria means all criteria must
      be true for the record to be selected
    • Created by entering 2 or more criteria
      in the same Criteria row of the query
      design grid




Microsoft Office 2010-Illustrated          18
Criteria Syntax
    • Quotation marks (“) around text
      criteria and pound signs (#) around
      date criteria are automatically added
      by Access
    • Criteria in Number, Currency, and
      Yes/No fields are not surrounded by
      any characters


Microsoft Office 2010-Illustrated             19
Searching for Blank Fields
    • 2 common criteria are Is Null and Is
      Not Null
    • Is Null – Finds all records where no
      entry has been made
    • Is Not Null – Finds all records where
      any entry has been made (even if
      zero)


Microsoft Office 2010-Illustrated             20
Comparison Operators




Microsoft Office 2010-Illustrated   21
Applying OR Criteria
    • OR criteria means any one criterion
      must be true for the record to be
      selected
    • Created by entering 2 or more criteria
      on different Criteria rows of the query
      design grid
    • Also created by entering 2 or more
      criteria in the same Criteria cell
      separated by OR
Microsoft Office 2010-Illustrated           22
Applying OR Criteria




Microsoft Office 2010-Illustrated   23
Formatting a Datasheet


    • Can: Change font size, font face,
      colors, gridlines

    • Cannot: Add custom headers, footers,
      images, subtotals



Microsoft Office 2010-Illustrated         24
Formatting a Datasheet




Microsoft Office 2010-Illustrated   25
Summary
    •     Using the Query Wizard
    •     Working with data in a query
    •     Using Query Design View
    •     Sorting and finding data
    •     Filtering data
    •     Applying AND criteria
    •     Applying OR criteria
    •     Formatting a datasheet
Microsoft Office 2010-Illustrated        26

More Related Content

What's hot

Excel 2010 Unit B PPT
Excel 2010 Unit B PPTExcel 2010 Unit B PPT
Excel 2010 Unit B PPTokmomwalking
 
Word 2010 Unit C PPT
Word 2010 Unit C PPTWord 2010 Unit C PPT
Word 2010 Unit C PPTokmomwalking
 
New Perspectives: Access.01
New Perspectives: Access.01New Perspectives: Access.01
New Perspectives: Access.01Anna Stirling
 
New Perspectives: Access.04
New Perspectives: Access.04New Perspectives: Access.04
New Perspectives: Access.04Anna Stirling
 
Word 2013 Unit A
Word 2013 Unit AWord 2013 Unit A
Word 2013 Unit Ajarana00
 
Access 2013 Unit D
Access 2013 Unit DAccess 2013 Unit D
Access 2013 Unit Djarana00
 
Excel 2013 Unit C
Excel 2013 Unit CExcel 2013 Unit C
Excel 2013 Unit Cjarana00
 
Word 2013 Unit B
Word 2013 Unit BWord 2013 Unit B
Word 2013 Unit Bjarana00
 
PowerPoint Unit A
PowerPoint Unit APowerPoint Unit A
PowerPoint Unit Ajarana00
 
Power point 2013 illustrated unit c
Power point 2013 illustrated unit cPower point 2013 illustrated unit c
Power point 2013 illustrated unit csteckejo
 
New Perspectives: Access.02
New Perspectives: Access.02New Perspectives: Access.02
New Perspectives: Access.02Anna Stirling
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit Ajarana00
 
Access 2013 Unit C
Access 2013 Unit CAccess 2013 Unit C
Access 2013 Unit Cjarana00
 
Ms Excel 2007 & 2010 Workshop
Ms Excel 2007 & 2010 WorkshopMs Excel 2007 & 2010 Workshop
Ms Excel 2007 & 2010 WorkshopCA Aditya Singhal
 
Word 2013 Unit C
Word 2013 Unit CWord 2013 Unit C
Word 2013 Unit Cjarana00
 
New Perspectives: Access.03
New Perspectives: Access.03New Perspectives: Access.03
New Perspectives: Access.03Anna Stirling
 
PowerPoint Unit B
PowerPoint Unit BPowerPoint Unit B
PowerPoint Unit Bjarana00
 
New Perspectives: Access.07
New Perspectives: Access.07New Perspectives: Access.07
New Perspectives: Access.07Anna Stirling
 

What's hot (20)

Excel 2010 Unit B PPT
Excel 2010 Unit B PPTExcel 2010 Unit B PPT
Excel 2010 Unit B PPT
 
Word 2010 Unit C PPT
Word 2010 Unit C PPTWord 2010 Unit C PPT
Word 2010 Unit C PPT
 
New Perspectives: Access.01
New Perspectives: Access.01New Perspectives: Access.01
New Perspectives: Access.01
 
New Perspectives: Access.04
New Perspectives: Access.04New Perspectives: Access.04
New Perspectives: Access.04
 
Word 2013 Unit A
Word 2013 Unit AWord 2013 Unit A
Word 2013 Unit A
 
Access 2013 Unit D
Access 2013 Unit DAccess 2013 Unit D
Access 2013 Unit D
 
Excel 2013 Unit C
Excel 2013 Unit CExcel 2013 Unit C
Excel 2013 Unit C
 
Word 2013 Unit B
Word 2013 Unit BWord 2013 Unit B
Word 2013 Unit B
 
PowerPoint Unit A
PowerPoint Unit APowerPoint Unit A
PowerPoint Unit A
 
Power point 2013 illustrated unit c
Power point 2013 illustrated unit cPower point 2013 illustrated unit c
Power point 2013 illustrated unit c
 
Excel.t02
Excel.t02Excel.t02
Excel.t02
 
New Perspectives: Access.02
New Perspectives: Access.02New Perspectives: Access.02
New Perspectives: Access.02
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit A
 
Access 2013 Unit C
Access 2013 Unit CAccess 2013 Unit C
Access 2013 Unit C
 
MS Excel
MS ExcelMS Excel
MS Excel
 
Ms Excel 2007 & 2010 Workshop
Ms Excel 2007 & 2010 WorkshopMs Excel 2007 & 2010 Workshop
Ms Excel 2007 & 2010 Workshop
 
Word 2013 Unit C
Word 2013 Unit CWord 2013 Unit C
Word 2013 Unit C
 
New Perspectives: Access.03
New Perspectives: Access.03New Perspectives: Access.03
New Perspectives: Access.03
 
PowerPoint Unit B
PowerPoint Unit BPowerPoint Unit B
PowerPoint Unit B
 
New Perspectives: Access.07
New Perspectives: Access.07New Perspectives: Access.07
New Perspectives: Access.07
 

Viewers also liked

Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPTokmomwalking
 
Internet Explorer PPT
Internet Explorer PPTInternet Explorer PPT
Internet Explorer PPTokmomwalking
 
Word 2010 Unit A PPT
Word 2010 Unit A PPTWord 2010 Unit A PPT
Word 2010 Unit A PPTokmomwalking
 
Excel 2010 Unit A PPT
Excel 2010 Unit A PPTExcel 2010 Unit A PPT
Excel 2010 Unit A PPTokmomwalking
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft accessHardik Patel
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access pptanuj
 

Viewers also liked (6)

Access 2010 Unit A PPT
Access 2010 Unit A PPTAccess 2010 Unit A PPT
Access 2010 Unit A PPT
 
Internet Explorer PPT
Internet Explorer PPTInternet Explorer PPT
Internet Explorer PPT
 
Word 2010 Unit A PPT
Word 2010 Unit A PPTWord 2010 Unit A PPT
Word 2010 Unit A PPT
 
Excel 2010 Unit A PPT
Excel 2010 Unit A PPTExcel 2010 Unit A PPT
Excel 2010 Unit A PPT
 
Introduction to microsoft access
Introduction to microsoft accessIntroduction to microsoft access
Introduction to microsoft access
 
Ms Access ppt
Ms Access pptMs Access ppt
Ms Access ppt
 

Similar to Access 2010 Unit B PPT

Access 2013 Unit B
Access 2013 Unit BAccess 2013 Unit B
Access 2013 Unit Bjarana00
 
Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03chazaabdul
 
Access essential training framework
Access essential training   frameworkAccess essential training   framework
Access essential training frameworkVijay Perepa
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit Ajarana00
 
New Perspectives: Access.05
New Perspectives: Access.05New Perspectives: Access.05
New Perspectives: Access.05Anna Stirling
 
Tutorial 11: Connecting to External Data
Tutorial 11: Connecting to External DataTutorial 11: Connecting to External Data
Tutorial 11: Connecting to External Datacios135
 
BI Knowledge Sharing Session 2
BI Knowledge Sharing Session 2BI Knowledge Sharing Session 2
BI Knowledge Sharing Session 2Kelvin Chan
 
Empowering Business Users: OBIEE 12c Visual Analyzer and Data Mashup
Empowering Business Users: OBIEE 12c Visual Analyzer and Data MashupEmpowering Business Users: OBIEE 12c Visual Analyzer and Data Mashup
Empowering Business Users: OBIEE 12c Visual Analyzer and Data MashupEdelweiss Kammermann
 
Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010home
 
New sap bo 4.0 course content
New sap bo 4.0 course contentNew sap bo 4.0 course content
New sap bo 4.0 course contentsaritha4training
 
New sap bo 4.0 course content
New sap bo 4.0 course contentNew sap bo 4.0 course content
New sap bo 4.0 course contentsaritha4training
 
New sap bo 4.0 course content
New sap bo 4.0 course contentNew sap bo 4.0 course content
New sap bo 4.0 course contentsaritha4training
 

Similar to Access 2010 Unit B PPT (20)

Access 2013 Unit B
Access 2013 Unit BAccess 2013 Unit B
Access 2013 Unit B
 
Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03Understand Charts in Excel - Chapter.03
Understand Charts in Excel - Chapter.03
 
Ch03 cmpt110
Ch03 cmpt110Ch03 cmpt110
Ch03 cmpt110
 
Access 2007 Unit B
Access 2007 Unit BAccess 2007 Unit B
Access 2007 Unit B
 
Ch02 cmpt110
Ch02 cmpt110Ch02 cmpt110
Ch02 cmpt110
 
Access essential training framework
Access essential training   frameworkAccess essential training   framework
Access essential training framework
 
Ch01 CMPT110
Ch01 CMPT110Ch01 CMPT110
Ch01 CMPT110
 
Access 2013 Unit A
Access 2013 Unit AAccess 2013 Unit A
Access 2013 Unit A
 
New Perspectives: Access.05
New Perspectives: Access.05New Perspectives: Access.05
New Perspectives: Access.05
 
Excel 2010 data tab
Excel 2010 data tabExcel 2010 data tab
Excel 2010 data tab
 
Tutorial 11: Connecting to External Data
Tutorial 11: Connecting to External DataTutorial 11: Connecting to External Data
Tutorial 11: Connecting to External Data
 
MS Access.pptx
MS Access.pptxMS Access.pptx
MS Access.pptx
 
Access 06
Access 06Access 06
Access 06
 
BI Knowledge Sharing Session 2
BI Knowledge Sharing Session 2BI Knowledge Sharing Session 2
BI Knowledge Sharing Session 2
 
Empowering Business Users: OBIEE 12c Visual Analyzer and Data Mashup
Empowering Business Users: OBIEE 12c Visual Analyzer and Data MashupEmpowering Business Users: OBIEE 12c Visual Analyzer and Data Mashup
Empowering Business Users: OBIEE 12c Visual Analyzer and Data Mashup
 
Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010Chapter 4 microsoft access 2010
Chapter 4 microsoft access 2010
 
MS-ACCESS.pptx
MS-ACCESS.pptxMS-ACCESS.pptx
MS-ACCESS.pptx
 
New sap bo 4.0 course content
New sap bo 4.0 course contentNew sap bo 4.0 course content
New sap bo 4.0 course content
 
New sap bo 4.0 course content
New sap bo 4.0 course contentNew sap bo 4.0 course content
New sap bo 4.0 course content
 
New sap bo 4.0 course content
New sap bo 4.0 course contentNew sap bo 4.0 course content
New sap bo 4.0 course content
 

Access 2010 Unit B PPT

  • 1. Microsoft Access 2010- Illustrated Unit B: Building and Using Queries
  • 2. Objectives • Use the Query Wizard • Work with data in a query • Use Query Design View • Sort and find data (continued) Microsoft Office 2010-Illustrated 2
  • 3. Objectives (continued) • Filter data • Apply AND criteria • Apply OR criteria • Format a datasheet Microsoft Office 2010-Illustrated 3
  • 4. Using the Query Wizard • A query allows you to select a subset of fields and records from one or more tables and then present the selected data as a single datasheet • Because a query doesn’t physically store the data, a query datasheet is sometimes called a logical view of the data Microsoft Office 2010-Illustrated 4
  • 5. Using the Query Wizard • Technically, a query is a set of SQL (Structured Query Language) instructions, but because you can use Access query tools such as Query Design View, you are not required to know SQL to build or use Access queries Microsoft Office 2010-Illustrated 5
  • 6. Using the Query Wizard Microsoft Office 2010-Illustrated 6
  • 7. Working with Data in a Query • You enter and edit data in a query datasheet the same way you do in a table datasheet • Any edits you make in a query datasheet are permanently stored in the underlying tables, and are automatically updated in all views of the data in other queries, forms, and reports Microsoft Office 2010-Illustrated 7
  • 8. Working with Data in a Query Microsoft Office 2010-Illustrated 8
  • 9. Using Query Design View • Use Query Design View to: • Add, delete, or move the fields in an existing query, to specify sort orders, or to add criteria to limit the number of records shown in the resulting datasheet • Create a new query from scratch Microsoft Office 2010-Illustrated 9
  • 10. Using Query Design View • Query Design View presents the fields you can use for that query in small windows called field lists • If you use the fields of two or more related tables in the query, the relationship between two tables is displayed with a join or link line identifying which fields are used to establish the relationship Microsoft Office 2010-Illustrated 10
  • 11. Using Query Design View Microsoft Office 2010-Illustrated 11
  • 12. Sorting and Finding Data • Works the same way for queries as it does for tables • Data can be sorted by clicking the list arrow on a datasheet’s column heading, then click a sorting option • Data can also be sorted by using the Sort and Find buttons on the Home tab Microsoft Office 2010-Illustrated 12
  • 13. Sorting and Finding Data Microsoft Office 2010-Illustrated 13
  • 14. Filtering Data • Filters provide a temporary way to display a subset of records that match given criteria • Filters are not used to calculate sums, averages, counts, etc. • Filters are removed when the datasheet is closed • Filters can, however, be saved as queries Microsoft Office 2010-Illustrated 14
  • 15. Filtering Data • Filter By Selection: Filtering by a given field value. Filters records for an exact match. • Filter By Form: Filters by comparative data Microsoft Office 2010-Illustrated 15
  • 16. Wildcards • Used to search for a pattern; represents any character • Entered as criteria • ? Used to search for a single character • * Used to search for any number of characters Microsoft Office 2010-Illustrated 16
  • 17. Filters vs. Queries Microsoft Office 2010-Illustrated 17
  • 18. Applying AND Criteria • AND criteria means all criteria must be true for the record to be selected • Created by entering 2 or more criteria in the same Criteria row of the query design grid Microsoft Office 2010-Illustrated 18
  • 19. Criteria Syntax • Quotation marks (“) around text criteria and pound signs (#) around date criteria are automatically added by Access • Criteria in Number, Currency, and Yes/No fields are not surrounded by any characters Microsoft Office 2010-Illustrated 19
  • 20. Searching for Blank Fields • 2 common criteria are Is Null and Is Not Null • Is Null – Finds all records where no entry has been made • Is Not Null – Finds all records where any entry has been made (even if zero) Microsoft Office 2010-Illustrated 20
  • 22. Applying OR Criteria • OR criteria means any one criterion must be true for the record to be selected • Created by entering 2 or more criteria on different Criteria rows of the query design grid • Also created by entering 2 or more criteria in the same Criteria cell separated by OR Microsoft Office 2010-Illustrated 22
  • 23. Applying OR Criteria Microsoft Office 2010-Illustrated 23
  • 24. Formatting a Datasheet • Can: Change font size, font face, colors, gridlines • Cannot: Add custom headers, footers, images, subtotals Microsoft Office 2010-Illustrated 24
  • 25. Formatting a Datasheet Microsoft Office 2010-Illustrated 25
  • 26. Summary • Using the Query Wizard • Working with data in a query • Using Query Design View • Sorting and finding data • Filtering data • Applying AND criteria • Applying OR criteria • Formatting a datasheet Microsoft Office 2010-Illustrated 26