Article ID: 311172 - Last Review: January 31, 2007 - Revision: 5.4 Part 5 of "Keeping Your Information Accurate" in Access 2003 and Access 2002: "Using Validation Rules to Restrict Data"This article was previously published under Q311172 On This PageSUMMARY The information covered in this article is provided by:
Microsoft
Press
(http://mspress.microsoft.com/)
. This article is part 5 of a series of eight articles that explain how to keep your information in Access accurate. To view the other articles in this series, please see the "Additional Resources" section later in this article. This information is an excerpt from the Microsoft Access Version 2002 Step by Step book, Chapter 6: "Keeping Your Information Accurate". Learn More About Microsoft Access Version 2002 Step by Step (http://www.microsoft.com/mspress/books/sampchap/5054.aspx) . MORE INFORMATION A validation rule is an expression that can precisely define the information that will be accepted
in one or several fields in a record. You might use a validation rule on a
field containing the date an employee was hired to prevent a date in the future
from being entered. Or if you make deliveries to only certain local areas, you
could use a validation rule on the phone field or ZIP code field to refuse
entries from other areas. You can type validation rules in by hand, or you can use the Expression Builder to create them. At the field level, Access uses the rule to test an entry when you attempt to leave the field. At the table level, Access can use the rule to test the content of several fields when you attempt to leave the record. If an entry doesn't satisfy the rule, Access rejects the entry and displays a message explaining why. In this exercise, you will create and test several field validation rules and one table validation rule. Follow these steps:
ADDITIONAL RESOURCESPart 1: Introduction
(http://support.microsoft.com/kb/311167/EN-US/
)
Q311167 Part 2: Using the Data Type to Restrict Data (http://support.microsoft.com/kb/311168/EN-US/ ) Q311168 Part 3: Using the Field Size Property to Restrict Data (http://support.microsoft.com/kb/311169/EN-US/ ) Q311169 Part 4: Using an Input Mask to Restrict Data (http://support.microsoft.com/kb/311171/EN-US/ ) Q311171 Part 5: Using Validation Rules to Restrict Data (http://support.microsoft.com/kb/311172/EN-US/ ) Q311172 Part 6: Using a Lookup List to Restrict Data (http://support.microsoft.com/kb/311173/EN-US/ ) Q311173 Part 7: Updating Information in a Table (http://support.microsoft.com/kb/311174/EN-US/ ) Q311174 Part 8: Deleting Information From a Table (http://support.microsoft.com/kb/311175/EN-US/ ) Q311175 REFERENCES The information in this article is an excerpt from the Microsoft Access Version 2002 Step by Step book, published by Microsoft Press. Collapse this image ![]() Learn More About Microsoft Access Version 2002 Step by Step (http://www.microsoft.com/mspress/books/sampchap/5054.aspx) For more information about this publication and other Microsoft Press titles, see http://mspress.microsoft.com (http://mspress.microsoft.com) .
| Article Translations
|
Back to the top



