Validation is the method used to check data to attempt to reduce the number of errors in the data being entered. It tests data against a validation rule and provides an error message if the data does not pass. There are a number of types of validation:
- Presence check - Makes sure that some data has been entered.
- Range check - Checks to make sure that data is within a certain range of letters or numbers.
- Format check - Checks data to be sure if follows the correct pattern.
- Length check - Makes sure the correct number of characters is entered.
- Lookup check - Makes sure data entered is on the list of acceptable values.
Verification is the proof-reading of data to make sure that it is correctly entered. This is important because validation only minimises data-entry errors, and can never prevent any completely. For example, a range check may require the data to be between 1 and 5, but if a 3 is entered, when the correct value was a 4, then the data passes the validation rule, but is still incorrect.
Comments
Report