473,387 Members | 1,641 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.

can format memo fields (line breaks, etc.) in Access reports?

I have a memo field that is included in some Access reports I created.
Is there some way for the memo field to display nicely formatted text,
with line breaks between paragraphs? Or is it necessary to export the
report?

I tried exporting a report by using the .rtf rich-text format (the
plain-text format was the only other word-processing option listed
when exporting). I then opened the .rtf file in Word. However, it
looks like some manual adjustments are necessary when adding line
breaks into a memo field (adjustment of the next tab over – to move it
further to the right – when making the field for the memo field a bit
wider, since the addition of line breaks and attempts to line up the
text can result in a wider block of text).

Is there a better, less manual way to make formatting of line breaks
occur in memo-field text?
Nov 12 '05 #1
4 22706
The memo field should handle line-breaks correctly where you have embedded
CR-LF pairs within the field (i.e. ascii 13 and ascii 10).

You may be able to use the Replace() function to replace actual embedded
characters with the format you want.

Alternatively, if you want to go with rich text, visit www.lebans.com for a
rich text control.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"intl04" <kr***@hotmail.com> wrote in message
news:41**************************@posting.google.c om...
I have a memo field that is included in some Access reports I created.
Is there some way for the memo field to display nicely formatted text,
with line breaks between paragraphs? Or is it necessary to export the
report?

I tried exporting a report by using the .rtf rich-text format (the
plain-text format was the only other word-processing option listed
when exporting). I then opened the .rtf file in Word. However, it
looks like some manual adjustments are necessary when adding line
breaks into a memo field (adjustment of the next tab over - to move it
further to the right - when making the field for the memo field a bit
wider, since the addition of line breaks and attempts to line up the
text can result in a wider block of text).

Is there a better, less manual way to make formatting of line breaks
occur in memo-field text?

Nov 12 '05 #2
Could you tell me how users accessing a data entry form connected to
the Access database can enter CR-LF pairs within the memo field? I did
a Google search on 'CR-LF' and found a lot of information - but it
mostly pertained to exporting and importing text between different
platforms and programs, from what I could see. Is it possible to put
in \r\n into the text, to insert paragraph breaks into the memo field
that will also appear in printed reports? Or what are the characters
to represent CR-LF, if not \r\n?

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message news:<40**********************@freenews.iinet.net. au>...
The memo field should handle line-breaks correctly where you have embedded
CR-LF pairs within the field (i.e. ascii 13 and ascii 10).

You may be able to use the Replace() function to replace actual embedded
characters with the format you want.

Alternatively, if you want to go with rich text, visit www.lebans.com for a
rich text control.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

Nov 12 '05 #3
If you have a text box on a form where the users enter the info into the
memo field, set the text box's EnterKeyBehavior property to:
New line in field
When they press the Enter key, it inserts a carriage-return line-feed pair.

Alternatively, Ctrl+Enter inserts a cr-lf.

In code, use vbCrLf. For example, this line adds a new line to the existing
data in a memo field:
Me.MyMemo = Me.MyMemo & vbCrLf & "Some more stuff"

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"intl04" <kr***@hotmail.com> wrote in message
news:41**************************@posting.google.c om...
Could you tell me how users accessing a data entry form connected to
the Access database can enter CR-LF pairs within the memo field? I did
a Google search on 'CR-LF' and found a lot of information - but it
mostly pertained to exporting and importing text between different
platforms and programs, from what I could see. Is it possible to put
in \r\n into the text, to insert paragraph breaks into the memo field
that will also appear in printed reports? Or what are the characters
to represent CR-LF, if not \r\n?

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message

news:<40**********************@freenews.iinet.net. au>...
The memo field should handle line-breaks correctly where you have embedded CR-LF pairs within the field (i.e. ascii 13 and ascii 10).

You may be able to use the Replace() function to replace actual embedded
characters with the format you want.

Alternatively, if you want to go with rich text, visit www.lebans.com for a rich text control.

Nov 12 '05 #4
Thanks for the helpful info! I decided not to modify the
EnterKeyBehavior property, though. I just found what I needed at
http://www.columbia.edu/kermit/ascii.html . It gives ctrl-key
combinations to produce ASCII characters: for example, entering ctrl-j
or ctrl-m twice will give a paragraph break (ctrl-j produces a line
feed and ctrl-m produces a carriage return). So, I'm just asking the
end users of the database to use those keys to produce paragraph
breaks.
"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message news:<40**********************@freenews.iinet.net. au>...
If you have a text box on a form where the users enter the info into the
memo field, set the text box's EnterKeyBehavior property to:
New line in field
When they press the Enter key, it inserts a carriage-return line-feed pair.

Alternatively, Ctrl+Enter inserts a cr-lf.

In code, use vbCrLf. For example, this line adds a new line to the existing
data in a memo field:
Me.MyMemo = Me.MyMemo & vbCrLf & "Some more stuff"

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"intl04" <kr***@hotmail.com> wrote in message
news:41**************************@posting.google.c om...
Could you tell me how users accessing a data entry form connected to
the Access database can enter CR-LF pairs within the memo field? I did
a Google search on 'CR-LF' and found a lot of information - but it
mostly pertained to exporting and importing text between different
platforms and programs, from what I could see. Is it possible to put
in \r\n into the text, to insert paragraph breaks into the memo field
that will also appear in printed reports? Or what are the characters
to represent CR-LF, if not \r\n?

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message

news:<40**********************@freenews.iinet.net. au>...
The memo field should handle line-breaks correctly where you have embedded CR-LF pairs within the field (i.e. ascii 13 and ascii 10).

You may be able to use the Replace() function to replace actual embedded
characters with the format you want.

Alternatively, if you want to go with rich text, visit www.lebans.com for a rich text control.

Nov 12 '05 #5

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

Similar topics

2
by: Jeremy | last post by:
I have a pretty straightforward database that is designed to record free-form information about products (date, source and a memo field). This is searched and updated via a form. For new records,...
24
by: deko | last post by:
I have an mdb (2002 file format) that uses memo fields extensively. I've read a lot about how problematic memo fields can be and that avoiding them is a good idea. But I'm stuck with them and was...
0
by: jimmyshaw83 | last post by:
I am sorry if this topic is tired, but after all that I have read I am still in the woods here. I have built a database to handle weekly and monthly reports of what people are doing. They submit...
4
by: ghadley_00 | last post by:
I have an access database form where I have a button that is supposed to be appending the contents of 1 memo field to another is behaving non-predictably. The code is: Me! = Me! & Chr$(13) &...
2
by: jacoballen | last post by:
I have a query that combines the results of three related tables. The memo fields are truncated to 255 characters, but I need all the information in them. I'm aware that removing code such as...
10
by: ARC | last post by:
This is mainly a speed question. In this example: I have a QuotesHdr table that has a few memo fields. If these memo fields are used extensively by some users, and if their are a large number of...
4
by: Charles | last post by:
Hello, I'm trying to find a good program to use for editing memo fields in Access 2003. I'd love to use Notepad or Wordpad, but the only option I'm really finding is a program called Total...
2
by: steph | last post by:
I have a table with 250 fields. Of course you are wondering why 250 fields... what could I possibly be storing in so many fields? I am using this table as a general import table for files that...
8
by: Jimmy Jones | last post by:
First of all - all answers that I could find via Google do not give me any explicit info as to how to handle this problem. So please - do not paste the following link for the hundreth time: ...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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?
0
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
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
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.