Solved

How do I add a line break in a report's label control box?

Posted on 2011-03-21
6
1,413 Views
Last Modified: 2013-11-28
In other words, the label's caption is long and I want to break the text where I want--not where Access wants.
0
Comment
Question by:bobbat
[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
6 Comments
 
LVL 120

Expert Comment

by:Rey Obrero (Capricorn1)
ID: 35180861
does the report label varies?
upload a sample db with the report
0
 

Author Comment

by:bobbat
ID: 35181188
For example:
I want to change the caption that :
"Address, Phone Number and
 Email Address of Adopter"

To:
"Adopter's Address
Phone Number and
Email Address"

It seems it was two keystrokes, like Ctrl and an the apostrophe key.
SampleDatabaseWithReport.accdb
0
 
LVL 5

Accepted Solution

by:
DoveTails earned 500 total points
ID: 35181530
If you're simply entering the text for the label....hold the Shift key down and press enter.

If you're doing it in code ...    & vbCrLf     (stands for Visual Basic Carriage Return Linefeed.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 74

Expert Comment

by:Jeffrey Coachman
ID: 35182811
bobbat.

Although not relevant to the issue, your sample file contains only the report.
This means that it is difficult to actually test a solution, as the report will not open in Report view or Print Preview without a recordsource.
0
 
LVL 44

Expert Comment

by:GRayL
ID: 35183500
Click on the label in Design view.  Place the cursor where you want the new line to start and press Ctl+Enter - presto - new line with the remaining text.
0
 

Author Closing Comment

by:bobbat
ID: 35184411
Thanks to all for your interest.
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

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

Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
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 …
Learn how to number pages in an Access report over each group. Activate two pass printing by referencing the pages property: Add code to the Page Footers OnFormat event to capture the pages as there occur for each group. Use the pages property to …
In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

690 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