Sunteți pe pagina 1din 1

Extension work Validation

You have just put in some easy validation rules for a few fields. What you should do now is to work out what validation text or rules might be required for the others. For example, try putting some text in that will help the user enter the date properly on the first attempt: You are now going to use these other field properties for both TBL_OWNERS and TBL_PETS: Input mask o This is what you use to force the layout of data that you might want, for instance in a postcode. o Use the input mask for the post code in TBL_OWNERS o The same rule applies for telephone numbers. Do you remember at the beginning you had to set the data type as text because it had a space in? Try the input mask for telephone numbers here. Default value o When you fill in the data for your database using a form, if there is a validation rule in place, it is useful to have a blank space until you fill it in. For example, you might see that a new pet will automatically have M entered in the field. As you might forget to change it, it is easy for a mistake to be made. o Use Default value to enter a , or a * which will give a 0 or * before you enter it and these will be replaced when you type in M or F. Required o You might decide that some information is absolutely vital and you cannot accept partial sets of data for an animal or an owner. o For example, you might insist on knowing what gender the animal is, or the owners home phone number. Make a sensible decision about which ones are necessary and which ones could be left out (eg you might not know your dogs blood type at first).

/opt/scribd/conversion/tmp/scratch6270/85511492.doc

S-ar putea să vă placă și