[h=2]Modifying Tables
[h=4]Validation Rules
A validation rule is a rule that dictates what information can be entered into a field. When a validation rule is in
place, it is impossible for a user to enter data that violates that rule. For example, if we were asking the user to
input a state name into a table with contact information, we might create a rule which limits the valid responses to
U.S. state postal codes. This would prevent users from typing something that wasn't actually a real state postal code.
In the example below, we will apply that rule to our Customers table. It's a fairly simple validation rule-- we'll just
name all of the valid responses a user could enter, which will mean the user can't type anything else into the
record. However, it's possible to create validation rules that are much more complex. For detailed information
on how to write validation rules, review this official Microsoft office tutorial on creating validation rules.
[h=4]Validation Rules
A validation rule is a rule that dictates what information can be entered into a field. When a validation rule is in
place, it is impossible for a user to enter data that violates that rule. For example, if we were asking the user to
input a state name into a table with contact information, we might create a rule which limits the valid responses to
U.S. state postal codes. This would prevent users from typing something that wasn't actually a real state postal code.
In the example below, we will apply that rule to our Customers table. It's a fairly simple validation rule-- we'll just
name all of the valid responses a user could enter, which will mean the user can't type anything else into the
record. However, it's possible to create validation rules that are much more complex. For detailed information
on how to write validation rules, review this official Microsoft office tutorial on creating validation rules.