home *** CD-ROM | disk | FTP | other *** search
/ Computer Based Training: …, Windows 95 & NT Basics / a1454501.iso / mo97a03 / AA01FT.TXT < prev    next >
Encoding:
Text File  |  1997-05-15  |  930 b   |  24 lines

  1. 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:
  2.  
  3. ò enter each value in a separate or row or criteria row for 
  4.   the field you want to test
  5.  
  6. ò enter all the criteria in a single row, separated by the OR
  7.   operator (for example, "Boston" Or "San Franciso")
  8.  
  9. If you enter criteria for several fields in the same row, Access performs AND operations between them.
  10.  
  11. There are also three special clauses you can use in Access to specify data you want in a recordset:
  12.  
  13. ò BETWEEN is useful for specifying ranges (Between 2
  14.   and 4 is equivalent to >=2 And <=4)
  15.  
  16. ò IN is useful for listing multiple OR criteria (In
  17.   ("Boston","San Francisco") is the same as "Boston"
  18.   Or "San Francisco")
  19.  
  20. ò LIKE helps you to search for patterns in text fields
  21.   (for example Like "B*" tests for any text entry starting
  22.   with the letter B)
  23.  
  24.