?
Solved

Access 2002 Report - Break a text line on a space

Posted on 2008-10-23
6
Medium Priority
?
343 Views
Last Modified: 2012-06-27
I have a report which has to display a number of long lines of text.  Inevitably this text is too long for a single line space.  So the text needs to be broken at a logical BLANK space and then continued on the next line.  An example of how Access handles it is shown below.  Access breaks the line in the middle of a word and does not print the rest of the word before continuing the text on the next line.

Is there a way to have Access break this text at a blank automatically - or do I have to write a VBA routine to format the text properly?
This long line of text should be broken at a blank space before continu
to the next line.  Breaking in the middle of a word is not acceptable.

Open in new window

0
Comment
Question by:ljcor
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 58
ID: 22785123
<<Is there a way to have Access break this text at a blank automatically - or do I have to write a VBA routine to format the text properly?>>

  None that I'm aware of.  You'd have to write a routine to reformat the text putting in a vbCRLF at the apporpriate spots based on the width of the control.

  Font type and size would need to be taken into account.

JimD.
0
 
LVL 77

Accepted Solution

by:
peter57r earned 2000 total points
ID: 22785140
Access does not work like that for me.  It always breaks on word boundaries.
Which version of Access is this?
How did you create the report?

0
 

Author Comment

by:ljcor
ID: 22785472
peter57r

I am using Access 2002 which comes in Office 2003 (go figure.)

I created the report by:  Clicked on Reports, clicked on New, Clicked on AutoReport Tabular.  Then I selected a Table whick has a few fields including one with the long lines of text.

I just did this again for a new report and it worked just fine, breaking on a word boundry.  I thought it did that the first time I tried this awhile back, too.  However, when I modified the length of the line in Design view it started chopping off the word.  I don't know why.  Perhaps you have an idea.  Either way I will accept your solution since that is just how I want it to work.

0
10 Questions to Ask when Buying Backup Software

Choosing the right backup solution for your organization can be a daunting task. To make the selection process easier, ask solution providers these 10 key questions.

 

Author Closing Comment

by:ljcor
ID: 31509155
Thanks, Peter.
0
 
LVL 77

Expert Comment

by:peter57r
ID: 22785589
I have tried messing around with the size of the textbox but can't create a problem except when it is so narrow that the whole word does not fit on one line. Otherwise it is consistently breaking on a word boundary.
Sorry I can't throw any light on the problem.
0
 

Author Comment

by:ljcor
ID: 22785707
Good enough.   I will just do it all over again - particularly since it is no problem.  Thanks again.
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
Traditionally, the method to display pictures in Access forms and reports is to first download them from URLs to a folder, record the path in a table and then let the form or report pull the pictures from that folder. But why not let Windows retr…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question