Hi,
First of all you should make it clear to yourself what you mean by validate the number. What criterias should be met in order for the number to be valid? (the Danish social secruity numbers must meet a special matematical formula in order to be valid).
This might also help (assume that s contains the social security number):
if isnumeric(left$(s,3)) and mid$(s,4,1)="-" and isnumeric(mid$(s,5,2)) and mid$(s,7,1)="-" and isnumeric(mid$(s,8)) and len (s)=11 then ...
Sunaj
'The gap between theory and practice is not as wide in theory as it is in practice'