473,395 Members | 2,443 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,395 software developers and data experts.

Carriage return in label?

Can I program a label with a carriage return to put the 2nd part of the
label on a new line. The only way I can see of doing this is to convert the
label to a text box, then use chr$(13).

dixie
Nov 18 '05 #1
5 43068
"Dixie" <di***@dogmail.com> wrote in message
news:43******@duster.adelaide.on.net...
Can I program a label with a carriage return to put the 2nd part of the
label on a new line. The only way I can see of doing this is to convert
the label to a text box, then use chr$(13).


Make the label taller and press <Shift Enter> to insert a Cr.
Nov 18 '05 #2
On Fri, 18 Nov 2005 12:33:45 +1100, Dixie wrote:
Can I program a label with a carriage return to put the 2nd part of the
label on a new line. The only way I can see of doing this is to convert the
label to a text box, then use chr$(13).

dixie


Chr(13) won't help you any. :-(
In Access you must use chr(13) & chr(10) in that order.
="Line one." & chr(13) & chr(10) & "Line two.

In a label caption, use the Shift+ Enter keys.
--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
Nov 18 '05 #3
fredg <fg******@example.invalid> wrote in
news:1l******************************@40tude.net:
On Fri, 18 Nov 2005 12:33:45 +1100, Dixie wrote:
Can I program a label with a carriage return to put the 2nd part
of the label on a new line. The only way I can see of doing this
is to convert the label to a text box, then use chr$(13).

dixie


Chr(13) won't help you any. :-(
In Access you must use chr(13) & chr(10) in that order.
="Line one." & chr(13) & chr(10) & "Line two.

In a label caption, use the Shift+ Enter keys.


Ctrl-Enter does the same thing.

I had never even known about Shift-Enter.

--
David W. Fenton http://www.bway.net/~dfenton
dfenton at bway dot net http://www.bway.net/~dfassoc
Nov 18 '05 #4
Jay

Dixie wrote:
Can I program a label with a carriage return to put the 2nd part of the
label on a new line. The only way I can see of doing this is to convert the
label to a text box, then use chr$(13).

dixie


You can accomplish this by pressing Return while holding down the Shift
button. If you wish to do this through code, then it would the "line
feed" character which I believe is (without looking it up) char# 10
instead of the "carriage return" character # 13.

Nov 18 '05 #5
You can accomplish this by pressing Return while holding down the Shift
button. If you wish to do this through code, then it would the "line
feed" character which I believe is (without looking it up) char# 10
instead of the "carriage return" character # 13.


Or the vbNewLine and vbCrLf constants
Nov 18 '05 #6

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

Similar topics

3
by: Canes_Rock | last post by:
The information posted at: ...
2
by: Andrew Chanter | last post by:
I have a VBA function that returns a string including "vbcr" (VB Carriage Return) to seperate a list into multiple rows, eg Item1 & vbcr & Item2 & vbcr & Item3 This works as planned in the...
1
by: chrissmith_76_Fed_Up_With_Spam | last post by:
Hello all, I am using Access 2002, with file format of Access 2000, and am experiencing a problem. I have a subform that is shown in datasheet view for users to edit data direct to a table. ...
2
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...
4
by: Nathan | last post by:
Is there a way to put a carriage return between tex in a label? Neither ControlChars.CR and vbCR seem to work. Thanks, Nathan
3
by: Dinsdale | last post by:
I have an xml file that is read into an object using serialization. One of the objects has a string field called delimeter that I want to contain a carriage return. Instead of trying to include the...
4
by: Waldy | last post by:
Hi there, I am reading a string from a web.config file and displaying it in a label on an .ASPX page. I want a carriage return in the string so that it looks right, but can't get it to put one...
11
by: evenlater | last post by:
My db allows the user to send email via CDO. The body of the email is determined in code. I have built an email form with To, CC and Subject lines and a large text box for the body of the message...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...
0
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
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.