Home > Archive > MS Access data conversion > April 2005 > New line character









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author New line character
Rohit Chitre via AccessMonster.com

2005-04-25, 7:26 am

Hi ,

I have a table with data over 1 lak records . Few of these records have New
line characters appended to them. Is there any way to remove this new line
character?

Thanks in advance
Rohit

--
Message posted via http://www.accessmonster.com
John Nurick

2005-04-26, 9:24 am

Hi Rohit,

Use an update query with a criterion like this, where XXX is the name of
the field.

Right([XXX], 2) = Chr(13) & Chr(10)

and an Update To expression like this

Left([XXX], Len([XXX]) - 2)

In SQL view it's something like
UPDATE MyTable
SET XXX = Left([XXX], Len([XXX]) - 2)
WHERE Right([XXX], 2) = Chr(13) & Chr(10)
;



This assumes that they have the standard Windows CR+LF for newline; if
it's something else, adjust the expressions as appropriate.

On Mon, 25 Apr 2005 12:33:34 GMT, "Rohit Chitre via AccessMonster.com"
<forum@nospam.AccessMonster.com> wrote:

>Hi ,
>
>I have a table with data over 1 lak records . Few of these records have New
>line characters appended to them. Is there any way to remove this new line
>character?
>
>Thanks in advance
>Rohit


--
John Nurick [Microsoft Access MVP]

Please respond in the newgroup and not by email.
Sponsored Links





Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive | Programming forum archive

Copyright 2008 droptable.com