Strip unwanted characters

G

Guest

Hi,

I'm using Access 2003 and have a field that I want to split into 2 seperate
fields. This field has a Carriage Return imbedded in the middle of the text.
What I want to do is place the text up to the CR in one field and the text
after the CR in a second field.

I have already created a second field and pasted the contents of field 1
into field 2.

This is from imported data.

My question is, how do I strip off the unwanted data?

Thanks in advance!
 
K

Ken Snell [MVP]

Use an update query:

UPDATE TableName
SET Field2 = Mid([Field2], InStr([Field2], Chr(13)) + 1);
 

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