473,480 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Carriage Returns in Memo fields

I'm trying to import data into a memo field by running an append query. The
data is to be imported as
if it was entered with separate lines in the memo field. I have tried
inserting chr(13)s into the string that is being appended into the memo
field but when appended, the data displays with a square box in place of a
carriage return/line feed. I would like to import the data so that data is
displayed in separate lines within the memo field.

Can some one please advise how this can be done? I have tried using chr(10)
as well but same results. Thanks.

Sep 25 '06 #1
3 9996

Gillian Steele wrote:
I'm trying to import data into a memo field by running an append query. The
data is to be imported as
if it was entered with separate lines in the memo field. I have tried
inserting chr(13)s into the string that is being appended into the memo
field but when appended, the data displays with a square box in place of a
carriage return/line feed. I would like to import the data so that data is
displayed in separate lines within the memo field.

Can some one please advise how this can be done? I have tried using chr(10)
as well but same results. Thanks.
did you try vbCrLf?

Sep 25 '06 #2
"Gillian Steele" <gs*****@spiceisle.comwrote in
news:12*************@corp.supernews.com:
I'm trying to import data into a memo field by running an append
query. The data is to be imported as
if it was entered with separate lines in the memo field. I have
tried inserting chr(13)s into the string that is being appended
into the memo field but when appended, the data displays with a
square box in place of a carriage return/line feed. I would like
to import the data so that data is displayed in separate lines
within the memo field.

Can some one please advise how this can be done? I have tried
using chr(10) as well but same results. Thanks.
On Windows, the line terminator is Chr(13) followed by Chr(10).

There is a built-in VBA constant, vbCrLf, that you can use to save
the time and processing power of testing against those two
characters.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Sep 25 '06 #3
Chr(13) is a carriage return
Chr(10) is a line feed

You need a carriage return and line feed, either Chr(13) & Chr(10) or the
intrinsic constant vbCrLf.
--

Terry Kreft
"Gillian Steele" <gs*****@spiceisle.comwrote in message
news:12*************@corp.supernews.com...
I'm trying to import data into a memo field by running an append query.
The
data is to be imported as
if it was entered with separate lines in the memo field. I have tried
inserting chr(13)s into the string that is being appended into the memo
field but when appended, the data displays with a square box in place of a
carriage return/line feed. I would like to import the data so that data
is
displayed in separate lines within the memo field.

Can some one please advise how this can be done? I have tried using
chr(10)
as well but same results. Thanks.

Sep 27 '06 #4

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

Similar topics

1
1803
by: Doc Wally | last post by:
Dear Colleagues: To begin with I am not a programmer. In fact, I just got all excited because I was able to create my very first .vbs script that actually worked - not that I actually coded...
3
1767
by: Guy Verville | last post by:
I'm perplexed, I have several forms that seem to be ok, but what is sent by email doesn't contain all the Carriage returns sent. The form contains many fields and is sent as follow:...
4
7306
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
3030
by: Steve Leferve | last post by:
I'm making a report that uses a query as its source. The query references a memo field that typically has carriage returns in it. When I go to run the report, it seems to have truncated the fields...
3
2006
by: Dave | last post by:
I need to strip out carriage returns from a memo field. Basically, one of the commercial databases we have uses a memo field for the address, and what I'd like to do is get rid of the carriage...
2
2923
by: eagleofjade | last post by:
I am trying to import data from a Word document into an Access table with VBA. The Word document is a form which has various fields. One of the fields is a field for notes. In some cases, this...
1
2653
by: I am Sam | last post by:
In ASP using VBScript to replace Chr(13) or Chr(10) with a <br> tag I would use the Replace method so that I can catch carriage returns from a memo field in MS Access or a Text field in MS SQL...
6
5975
by: Bhujanga | last post by:
Is there a way to set a memo field on a form so that the 'Enter' key will behave as a carriage return instead of leaving the field? I know the field type recognizes carriage returns if you feed them...
1
10654
by: jollyroger | last post by:
I have searched the web forums, and can't seem to find an answer to this particular problem I have. In an excel sheet, cells in one column have formatted text in the "wrapped" cells. For many of...
0
7054
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7057
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
7102
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...
1
6756
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7003
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4495
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3008
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3000
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
570
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.