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
ANDandORoperatorsIncluding
ANDandORin 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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access