Skip to main content
Business LibreTexts

14.7: Adding Criteria to a Query

  • Page ID
    46657
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Learning Outcomes

    • Add criteria to a query

    More complex queries can be created in Access by using the “Database Designer.” Database Designer allows criteria to be added to a query to include or exclude data elements to make queries more meaningful. Let’s say we want to develop a list of employees—but limit the list to employees who are Sales Representatives.

    Select “Database Designer” from the tool bar and choose the “Employees” table from the list.

    Go to the “Criteria” field and enter “= Sales Representatives.” Access automatically adds the parenthesis to your entry.

    Employee table selected in "Database Designer" and "Sales Representative" is entered into the Criteria cell.

    Run the query and Access returns only the list of employees who have that title.

    Complete query shows datasheet that only presents query information for employees with the job titled "Sales Representative."

    Contributors and Attributions

    CC licensed content, Original
    • Adding Criteria to a Query. Authored by: Robert Danielson. Provided by: Lumen Learning. License: CC BY: Attribution

    14.7: Adding Criteria to a Query is shared under a CC BY license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?