SSN format

I have a query where I need to have the SSN appears as 123456789 instead of
123-45-6789 can someone help me with this? The table has it as 123-45-6789.
I would like to do it without running an update query with the replace
function and would also like to avoid using left,mid,right if at all
possible.
Pat_RI [ So, 13 April 2008 21:19 ] [ ID #1941573 ]

Re: SSN format

Pat_RI wrote:
> I have a query where I need to have the SSN appears as 123456789
> instead of 123-45-6789 can someone help me with this? The table has
> it as 123-45-6789. I would like to do it without running an update
> query with the replace function and would also like to avoid using
> left,mid,right if at all possible.

Use Replace() in the query...

SSNum: Replace(SSN, "-", "")

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Rick Brandt [ So, 13 April 2008 21:28 ] [ ID #1941574 ]
Datenbanken » comp.databases.ms-access » SSN format

Vorheriges Thema: need help with inserting a set of records
Nächstes Thema: Preserving Relationship window