query

B

bumi

I am trying to write an update query to obtain the ssn
without the hyphens.
This is what I have so far:
Left([ssn],3) & Right([ssn],2) & Right([ssn],4)
However I cant get the two middle numbers correct. For
example: if the SSN is 123-45-6789
I get 123896789
I have tried various combinations for the middle syntax
but cant seem to get the the two middle digits in the
right place. The last two digits in the SSN end up in
the middle. Does anyone know of which combination works?
 
J

Jen

Hi,

In order to get the middle 2 numbers, you need to use the
Mid() function.

Mid([ssn], 5, 2)

Regards,
Jen
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top