Separating Fields in Access

  • Thread starter Thread starter Hendrix10
  • Start date Start date
H

Hendrix10

I have a table that I imported into Access. I would like to separate
on of the fields into to two separate fields. The field that I want to
separate is a total of 7 characters and i would like to break it up
into one field of 6 and another of 1. Is this possible? If so, how is
it done?

H
 
I have a table that I imported into Access. I would like to separate
on of the fields into to two separate fields. The field that I want to
separate is a total of 7 characters and i would like to break it up
into one field of 6 and another of 1. Is this possible? If so, how is
it done?

H

How are we to know which of the 7 characters goes where?
You might start by giving us an example or two of what the data looks
like and what result you would like to see.
 
How are we to know which of the 7 characters goes where?
You might start by giving us an example or two of what the data looks
like and what result you would like to see.



The original field is "traking number" and the data in the field
looks like 123456A.
I would like the "Traking Number" to be broken up into two fields
"Number" (which would be 123456) and "Identifier" (which would be A).


Hendrix
 
Open the table in design view and add the two new fields.
Then create an update query that will update both fields
For Number it would be:
Left(TrackingNumber,6)
For Indicator it would be:
Right(TrackingNumber,1)
Open the table in design view and delete the original TrackingNumber field.
 
The original field is "traking number" and the data in the field
looks like 123456A.
I would like the "Traking Number" to be broken up into two fields
"Number" (which would be 123456) and "Identifier" (which would be A).

Hendrix

Dave gave you the correct method.
 
Dave gave you the correct method.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail- Hide quoted text -

- Show quoted text

I followed the direction and it broke up the work "Tracking Number"
but not the values in the "Tracking Number" column. Is that what was
supposed to happen? If so, is there a way to break up the values of
the Column? If not, what might I have down wrong?
 
I followed the direction and it broke up the work "Tracking Number"
but not the values in the "Tracking Number" column. Is that what was
supposed to happen? If so, is there a way to break up the values of
the Column? If not, what might I have down wrong?

You probably put "Tracking Number" in quotes, or Access added the quotes for
you, rather than using [Tracking Number] in square brackets, to indicate that
it's a fieldname.

If this doesn't help, please open your query in SQL view, by clicking View...
SQL on the menu while the query is open in design view. Copy and paste the SQL
text to a message here.

John W. Vinson [MVP]
 
I followed the direction and it broke up the work "Tracking Number"
but not the values in the "Tracking Number" column. Is that what was
supposed to happen? If so, is there a way to break up the values of
the Column? If not, what might I have down wrong?

You probably put "Tracking Number" in quotes, or Access added the quotes for
you, rather than using [Tracking Number] in square brackets, to indicate that
it's a fieldname.

If this doesn't help, please open your query in SQL view, by clicking View...
SQL on the menu while the query is open in design view. Copy and paste the SQL
text to a message here.

John W. Vinson [MVP]

That was it.

Thanks

Hendrix
 

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

Similar Threads

Access Dcount (multiple criteria) 3
Breaking out data 3
Importing Text Files Into Access 1
Field concatenation into a combo box 5
parse field 5
Two separate indexes? 7
Fields and custom fields 0
Separating Text Data in a field 11

Back
Top