Chapter 13. I'll Take These AND Those OR Them

In This Chapter

  • Understanding the process of setting criteria for your queries

  • Working with the AND and OR operators

  • Including AND and OR in the same query

As you build larger and more complex databases with Access, your questions about that data become larger and more complex. Changing the order of your records — sorting from A to Z and then from Z to A and filtering it from one or more perspectives — just isn't enough for you or your database. You want more, or to be more accurate, you need more from your database, and you need it quickly.

What to do? You can use queries that ask questions (present criteria to the database to see which records meet it) to help you ferret out those records that you need to access (pardon the expression) right now.

This chapter shows how to set more specific criteria for your queries, controlling the answers to your database questions with ease and speed. You find out about two very powerful Access operators: AND and OR. what the operators do, how they do it, and (most importantly) when and why to use them.

If AND and OR are not the solutions to your query‐building needs, Chapter 12 shows the basics of querying, and may help point you in the right direction. You can create queries automatically, or you can build them from scratch. Chapter 12 gives you some more advanced ideas about queries and helps you craft specialized queries for your specific needs..

Working with AND and/or OR

AND and OR are the most powerful ...

Get Access® 2007 For Dummies® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.