By validating or restricting data, you can give users immediate feedback about the data just entered and ensure that they get the correct information into a text box or other control on a form.
Create an input mask for a control
Create a validation rule for a control
Read about the order in which different kinds of validation are applied
Read about complex validation you can do with macros or event procedures