473,396 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to remove the CR character (â–¡)

I have imported large text fields from Excel into Access 2000 which
contain many repetitions of the Carriage Return character similar to
"â–¡".

How can I strip them out without doing it manually? The Find and
Replace function does not work as it does not recognize this character.

Thanks in advance for any advice.

Peter Tyler

Nov 13 '05 #1
7 8469
I'm sorry I cant help here Peter but I will be interested in seeing your
replies.
I have a similar problem with an address field. In the past CR's were put
in to correctly format the field for print. It has now become necessary to
print the addresses at 30 degrees due to the envelope template we are using.
I have found a VB procedure which can do this but unlike Access it doesn't
recognise the "?" character return.
Ideally I would like to replace the "?" with a traditional CR symbol
(whatever that may be).

"Peter Tyler" <PL*****@gmail.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
I have imported large text fields from Excel into Access 2000 which
contain many repetitions of the Carriage Return character similar to
"?".

How can I strip them out without doing it manually? The Find and
Replace function does not work as it does not recognize this character.

Thanks in advance for any advice.

Peter Tyler

Nov 13 '05 #2
I do know that Word can find & replace that character, so you might try
cleaning up the text file in Word, then importing the text/csv file into
Access. Visual basic uses "vbCr" or "Chr(13)" to represent carriage
returns.
-Ed

"Peter Tyler" <PL*****@gmail.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
I have imported large text fields from Excel into Access 2000 which
contain many repetitions of the Carriage Return character similar to
"?".

How can I strip them out without doing it manually? The Find and
Replace function does not work as it does not recognize this character.

Thanks in advance for any advice.

Peter Tyler
Nov 13 '05 #3
rkc
Peter Tyler wrote:
I have imported large text fields from Excel into Access 2000 which
contain many repetitions of the Carriage Return character similar to
"â–¡".

How can I strip them out without doing it manually? The Find and
Replace function does not work as it does not recognize this character.

Thanks in advance for any advice.


Try running an update query on a copy of the table using the replace
function and see how things go.

UPDATE Table
SET ImportField = Replace([ImportField],Chr$(13) ,"");
Nov 13 '05 #4
>>UPDATE Table
SET ImportField = Replace([ImportField],Chr$(13) ,"")

Thanks. Daunting, but I'll give it a try!

Peter

Nov 13 '05 #5
Thanks for your response Ed.

Peter

Nov 13 '05 #6
Tried it out in Word 2002 but it doesn't find the "â–¡" character nor
does it treat the character as a manual line feed.

Peter

Nov 13 '05 #7
OK, I've done it. I dropped the Access column with the offending text
(about 800 records) back into Excel and ran the Clean() function, which
strips out "non-printable" characters, then copied it back into Access.
Works a treat!

Thanks for everybody's input.

Peter Tyler

Nov 13 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Hans Stoessel | last post by:
Hi I have a C application on a Windows PC who shoul delete files on a Sun which is in the same network. I try this with the 'remove' command, e.g. remove(\\Sun\Temp\File.jpg). But this doesn't...
4
by: francescomoi | last post by:
Hi. I'm trying to remove some characters within a string and substitute others. For instance, I want to convert: John's new house, great ---> Johns-new-house-great I tried with:...
7
by: Steve | last post by:
string str ="\"C:\Program Files\Internet Explorer\iexplore.exe\" -nohome" How can I remove charcter to string str = ="C:\Program Files\Internet Explorer\iexplore.exe -nohome"
8
by: Jan | last post by:
Hi there, Is there a way to remove spaces from a line of text? For example: vr 12-12-79 city village state name I want it to be:
3
by: Mark | last post by:
I need to remove a square character from a text file. How can I locate a square character and remove it? Thanks. Mark
6
by: Daniel Mark | last post by:
Hello all: I have the following snippet: In : fileName = 'Perfect Setup.txt\n' In : fileName = fileName # remove the '\n' character In : fileName Out: 'Perfect Setup.txt'
9
by: Smiley | last post by:
Hi, Can someone tell me how to remove aspostophe (') from user input. I don't want to give any error message. Just want to remove or change it to "" or null, such input when it appear anywhere...
26
by: Brad | last post by:
I'm writing a function to remove certain characters from strings. For example, I often get strings with commas... they look like this: "12,384" I'd like to take that string, remove the comma...
4
by: MC | last post by:
Is there a string function in .NET that will remove the accent marks from letters? I know that's a slightly vague request... and that I could implement it by table lookup (and will do so unless...
1
by: nyc680 | last post by:
for this c program, i'd like to remove the substring "cc" and character "=" from input string "aaccbbccdd" the code below can only remove "cc" once, can somebody help me figure out how to remove...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.