Limiting data in a field prevents entry errors. For instance, suppose you are selling towels in three colors - red, blue, and yellow. Limiting the data values to "red," "blue" or "yellow" will prevent people from mistakenly ordering pink towels. These instructions apply to MS Access 97.
Instructions
- 1
Open your table in Design view.
2Click in the field that is to be limited.
3In the Field Properties box at the bottom of the screen, click in Validation Rule. A small box with three dots appears. Click in this box.
4The Expression Builder appears. Enter the expressions to limit your data. In the towel example given above, you would click on Functions, then enter Like "red" OR "blue" OR "yellow."
5Click OK. Your field will no longer accept any values other than red, blue, or yellow.
6Directly under the Validation Rule field, you will see a field called Validation Text. This is what users will see if they try to enter the wrong value by mistake. Enter your validation text here. In the towel example, you might use something like, "That color is not available. Please enter red, yellow or blue."
7Save your table.
0 comments:
Post a Comment