Identify Carriage returns and line feeds on a table

L

Lina

Hello,
I have a table that can potenitally contain carriage returns and/or
line feeds in the fields

I want to identify all records that have carriage returns

I want to create a query but how do i identify the CRs and LFs?

Thanks!
 
K

Ken Snell \(MVP\)

SELECT *
FROM TableName
WHERE FieldName Like "*" &
Chr(13) & Chr(10) & "*";
 
D

Duane Hookom

Since the carriage returns and line feeds might be present individually, I
would use:
SELECT *
FROM TableName
WHERE FieldName Like "*" &
Chr(13) & "*" OR FieldName Like "*" & Chr(10) & "*";
 

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