create new field with first 9 characters of old field

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a field with a persons ssn# and last name. 555555555Greene I want to
create 2 fields with this data. One with the social 555555555 and one with
the last name Greene. I am guessing that I do this by running a query but not
sure.
 
lilpurvis75 said:
I have a field with a persons ssn# and last name. 555555555Greene I want
to
create 2 fields with this data. One with the social 555555555 and one with
the last name Greene. I am guessing that I do this by running a query but
not sure.

First question. Are you planning on keeping the original field and the
two new fields in a table, or you planning to just use a query to break it
up when needed. Normally you should not store the data in both forms in the
same database. I suggest breaking up the filed into two fields and deleting
the original field

OK How. Yes you do use a query and the Left and the the Right
functions. eg Left (FieldName,9) will return your SSN#
 

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

Back
Top