taxt box properties in user form

Atul Patankar (Chartered Accountant) (24 Points)

06 February 2008  

can some one tell me how to specify properties of input by user in a text box used in user form ? I want to specify, say only dates or a PAN number. I want the user to receive error message if he feeds something else.