HoyaFinance said:
I have two fields with social security data. The first one is stored as
numeric, and shows as 123456789. The second one is stored as text, and shows
as 123-45-6789. Regardless of the formatting, access is not recognizing that
the values in the two fields of the different tables are the same.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
123456789 doesn't equal "123-45-6789" 'cuz there are dashes in the text
version. You have to remove the dashes from one or add dashes to the
other. Since you can't enter dashes in a numeric column value you can
use a Replace() (Access 2000 & greater) to get rid of the text version
dashes. Do this on a copy of the original table if you don't want this
change to be permanent:
UPDATE table_name
SET SSN_text = Replace(SSN,"-","")
WHERE SSN_text Like "*-*"
Then change the data entry process so only one type of SSN is used - so
you don't have to do this again.
--
MGFoster:::mgf00 <at> earthlink <decimal-point> net
Oakland, CA (USA)
-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv
iQA/AwUBQdwrQIechKqOuFEgEQLDAwCgtEdTqSE807Lu8ilYyCgaTDKRB0cAoIzh
zSafCQ9zHxLfwtvIGbY31YDW
=Wjyk
-----END PGP SIGNATURE-----