Secondary Teaching Resources for I.C.T. |
DatabasesWhat is a database?
|
DatabasesData ValidationOne of the huge benefits that a computerised database can give the users is called Data Validation. Data Validation means that the data is checked to see if it makes sense (or is valid), as it is entered. If the user seems to have entered a meaningless value, the database can refuse to accept the entry and prompt them for a more sensible value by displaying a message on the screen. Validation RulesAs well as input masks, Access has another powerful tool for data validation, which it calls the validation rule. The validation rule has two parts, firstly we have the rule itself, and secondly we have the validation text, which is simply a message that the user will see if they input data that breaks the rule. To use a validation rule, you need to define an expression that describes the data that you will allow. You can use the following symbols:-
Examples of Validation rulesHere are some examples of validation rules:- To make sure you have a valid month BETWEEN 1 AND 12
To make sure you have a valid lesson BETWEEN 1 AND 5Click here to return to the top of the page Click here to find out how to make Lookup values
|