T
Tim Syrell
I have a field called "Client_ID" which is essentially a social security
number (in text format). The data for this field is imported from a
downloaded database (which I cannot modify), and the database truncates any
zeros from the beginning (left side) of the number, i.e., a social of
"001-23-4567" becomes "1234567", "000-12-3456" becomes "123456", etc.,
creating a host of different-length ss numbers. At this point I am not
concerned about whether the hyphens are present or not, as that can be dealt
with via formatting later. The table (which I created) into which I need to
place this truncated data contains a field called "SS" for social security
number (again in text format). My problem is this: how do I code or query
to identify and flag each such imported field that has a length of less than
9 digits (the total length of a correct SS number, net of hyphens), and then
insert the appropriate number of zero's at the left end of the truncated
number, in order to achiece the ultimate 9-digit number I need?
number (in text format). The data for this field is imported from a
downloaded database (which I cannot modify), and the database truncates any
zeros from the beginning (left side) of the number, i.e., a social of
"001-23-4567" becomes "1234567", "000-12-3456" becomes "123456", etc.,
creating a host of different-length ss numbers. At this point I am not
concerned about whether the hyphens are present or not, as that can be dealt
with via formatting later. The table (which I created) into which I need to
place this truncated data contains a field called "SS" for social security
number (again in text format). My problem is this: how do I code or query
to identify and flag each such imported field that has a length of less than
9 digits (the total length of a correct SS number, net of hyphens), and then
insert the appropriate number of zero's at the left end of the truncated
number, in order to achiece the ultimate 9-digit number I need?