Using IN instead of OR


show more Using IN instead of OR provides you with in-depth training on Business. Taught by Alicia Katz Pollock as part of the Access 2010 Power Shortcuts show less
please wait ...

Using IN instead of OR

When you're writing an Or query with multiple values, sometimes using 'In' is better than using 'Or.' You can use the In operator when you need to determine whether a value equals one of many values. Let's look at our In-state query in Design View. I'll hold my cursor between the State and Work Phone columns, so I get a double headed arrow, and I'll double-click to spread it out. So here I'm looking for customers from within a set of states and this expression uses a series of Or operators.

California Or Nevada Or New Mexico Or Arizona Or Maryland Or Pennsylvania. A simpler alternative is to use the In operator. In parenthesis, California, Nevada New Mexico, Arizona Maryland Pennsylvania, and then I'll finish it off with my closing parenthesis but when I hit Tab, notice that I didn't even have to type in the quotation marks myself. Access put them in for me. See how much shorter an In statement is than an Or statement, and when I delete the Or sta...

Using IN instead of OR
Video duration: 1m 29s 3h 43m Intermediate

Viewers:

Using IN instead of OR provides you with in-depth training on Business. Taught by Alicia Katz Pollock as part of the Access 2010 Power Shortcuts

Subject:
Business
Software:
Access
Author:
please wait ...