V
Van T. Dinh
Sorry. I got my logic twisted wrongly: The greater than > 0 is correct with
the IIf construction I posted previously with Left / Mid / Right. Let me
repeat again the correct expression (I *think*):
IIF(INSTR([SOCIAL SECURITY #],"-")>0,
[SOCIAL SECURITY #] ,
Left([SOCIAL SECURITY #], 3) & "-" &
Mid([SOCIAL SECURITY #], 4, 2) & "-" &
Right([SOCIAL SECURITY #], 4) )
Sorry for the confusion I have caused.
the IIf construction I posted previously with Left / Mid / Right. Let me
repeat again the correct expression (I *think*):
IIF(INSTR([SOCIAL SECURITY #],"-")>0,
[SOCIAL SECURITY #] ,
Left([SOCIAL SECURITY #], 3) & "-" &
Mid([SOCIAL SECURITY #], 4, 2) & "-" &
Right([SOCIAL SECURITY #], 4) )
Sorry for the confusion I have caused.