home *** CD-ROM | disk | FTP | other *** search
- When you want to test for any of several values (that is, you require OR operators between the criteria), you can use one of two methods:
-
- ò enter each value in a separate or row or criteria row for
- the field you want to test
-
- ò enter all the criteria in a single row, separated by the OR
- operator (for example, "Boston" Or "San Franciso")
-
- If you enter criteria for several fields in the same row, Access performs AND operations between them.
-
- There are also three special clauses you can use in Access to specify data you want in a recordset:
-
- ò BETWEEN is useful for specifying ranges (Between 2
- and 4 is equivalent to >=2 And <=4)
-
- ò IN is useful for listing multiple OR criteria (In
- ("Boston","San Francisco") is the same as "Boston"
- Or "San Francisco")
-
- ò LIKE helps you to search for patterns in text fields
- (for example Like "B*" tests for any text entry starting
- with the letter B)
-
-