E
EdStevens
User is trying to produce a report joining two tables. Tables are linked
tables, using two Excel workbooks containing employee data. Join is on SSN.
In one workbook the SSN is (correctly) typed as a character string. In the
other it is typed as a number (double). Thus, not only are the data types
mismatched, but by defining SSN as a number, any leading zeros are dropped.
This particular worksheet comes to the user as a .csv file and investigation
of that file shows the SSN's that would have leading zeros have already been
truncated.
Somehow I need to build a query that will recast the 'numeric' SSN to a
character string AND lpad it with zeros. I can get around in Access, but am
far from fluent in it.
tables, using two Excel workbooks containing employee data. Join is on SSN.
In one workbook the SSN is (correctly) typed as a character string. In the
other it is typed as a number (double). Thus, not only are the data types
mismatched, but by defining SSN as a number, any leading zeros are dropped.
This particular worksheet comes to the user as a .csv file and investigation
of that file shows the SSN's that would have leading zeros have already been
truncated.
Somehow I need to build a query that will recast the 'numeric' SSN to a
character string AND lpad it with zeros. I can get around in Access, but am
far from fluent in it.