Remove carriage returns in memo fields

J

judith

I have imported some data from Excel where the Alt+ Enter has been used to
line space information in a cell. This comes over as | type character. Any
suggestion please as to how I can relace these characters with a carriage
return in the imported memo field.

Thanks
 
S

Stefan Hoffmann

judith said:
I have imported some data from Excel where the Alt+ Enter has been used to
line space information in a cell. This comes over as | type character. Any
suggestion please as to how I can relace these characters with a carriage
return in the imported memo field.
Run an UPDATE query like this:

UPDATE [yourTable]
SET [yourMemoField] = Replace([yourMemoField],
Chr(10),
Chr(13) & Chr(10))

imho Excel only uses the Lf character:

Chr(10) is Lf
Chr(13) & Chr(10) is CrLf

be sure, that you have a backup copy of your table/database before
trying it.

mfG
--> stefan <--
 

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