473,387 Members | 1,899 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,387 software developers and data experts.

replace CHR(13) with a true CR in memo field

Hello all,

I have some FoxPro data that I am converting to Access. The design of the old tables did not use memo fields. It had a record for each line in a child table.

I have created a FoxPro prg that concatenates the data into a memo field with a CHR(13) between them to force each record on to a separate line in the memo field in the new table. The data looks fine in FoxPro.

However, when I view the data in Access, the information is NOT on a new line and has a special ASCII character (shaped like a box) where the CHR(13) was inserted. Is there a way to replace this with a true carriage return?

Any thoughts would be appreciated.

Thanks,

George Troutman
Jan 18 '07 #1
3 9223
cyberdwarf
218 Expert 100+
George

Only just saw your post

Try using both Chr(13) and Chr(10)

This corresponds to carriage-return+linefeed

HTH

Steve
Jan 18 '07 #2
NeoPa
32,556 Expert Mod 16PB
You can use the predefined strings VbCr; VbLf; VbCrLf; for Carriage Return; Line Feed; Carriage Return/Line Feed respectively.
However, unless you display it away from an Access table (or grid) I think it will still show up as the square box. This is because a grid is not designed for variform data and must restrict it to one line for display purposes.
Jan 19 '07 #3
MMcCarthy
14,534 Expert Mod 8TB
You can use the predefined strings VbCr; VbLf; VbCrLf; for Carriage Return; Line Feed; Carriage Return/Line Feed respectively.
However, unless you display it away from an Access table (or grid) I think it will still show up as the square box. This is because a grid is not designed for variform data and must restrict it to one line for display purposes.
Should view alright with the vbCrLf in it.
Jan 19 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Les Juby | last post by:
Can someone please help with a suggestion as to how I can keep the formatting (carriage returns) that the user enters into a memo field and then display that later. I figured I might be able to...
3
by: Helgardh | last post by:
I have a linked table (Access 2003) to an Outlook inbox. The body of the e-mail messages are in a memo field. My problem is that I need to "read" the memo and find data on certain lines. The...
2
by: crjunk | last post by:
I have the following code in my web page. Dim tmpReplace As String 'Giving tmpReplace the value from the textbox on the webform. tmpReplace = txtComments.Text.Trim 'Prevents report from...
10
by: Dan Nash | last post by:
Lo, In a previous version of an app, I used replace to convert multiline text boxes to something easier to put in a database, and then i used replace(chr(13), "<br>") when i needed to show the...
2
by: midlothian | last post by:
Hello Trying to update a memo field in an update query using the Replace function, and am getting a type conversion error. Here is my parameter: CStr(Replace(CStr(),"$",Chr$(13) & Chr$(10))) ...
9
by: RMC | last post by:
Hello, I'm looking for a way to parse/format a memo field within a report. The Access 2000 database (application) has an equipment table that holds a memo field. Within the report, the memo...
1
thewesties
by: thewesties | last post by:
Could somebody please help me before I dump a gallon of water on my pc! I am very happy to have come across this site on the internet. TheScripts has helped me through so many issues to this...
11
tdw
by: tdw | last post by:
Hi all, I have tried a few different methods to accomplish this, but with no luck. I will post the code for the latest attempt at the end of this post. I work at a land surveying company. This...
7
by: Redbeard | last post by:
I have a memo field that is supposed to be in paragraph format (with no returns) but half of the records are set up as point form with multiple returns. I have figured out how to remove the returns...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...

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.