Question : Validation Rule

Hello,

I have a field "phone" in table "user"

I want to create a Validation Rule so the Phone field should contain:

*Only Number
*Nut Null
*only 10 digit
*DOES NOT start with 1
*Cannot have Duplicates

And if the "phone" field doesn't has any of above mentioned rules then delete the whole record.

Is this possible to do?

Thanks

Answer : Validation Rule

ali3121: When in design mode for your table, for the telephone number field, add the following:

Input Mask:             !\(999")"000-0000;;_
This will provide the format of the telephone number but the formatting characters will not form part of the data in the table. The field must be text and 10 characters long.

Validation Rule:       > "1999999999"
This will ensure it starts with a number two or greater.

Required:               Yes
Allow Zero Length:  No
Indexed:                Yes (No Duplicates)

Ray
Random Solutions  
 
programming4us programming4us