473,385 Members | 1,655 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,385 software developers and data experts.

carriage return in an expression

Using Access 2000, I'm looking for a way to concatenate two fields in an
expression within a report. Basically, the two are an address field (memo
type) and postcode (text). I know about the expression itself and use the
syntax =[Address]&" "&[Postcode] but ofcourse, the postcode appears on the
same line as the last line of the address. What I really want to be able to
do is to have it on the next line. I could use a separate control, but if
the address is only 2 lines long, there is a gap. Any ideas gratefully
received.

Dave
Nov 13 '05 #1
5 4643
Dave wrote:
Using Access 2000, I'm looking for a way to concatenate two fields in
an expression within a report. Basically, the two are an address
field (memo type) and postcode (text). I know about the expression
itself and use the syntax =[Address]&" "&[Postcode] but ofcourse, the
postcode appears on the same line as the last line of the address.
What I really want to be able to do is to have it on the next line. I
could use a separate control, but if the address is only 2 lines
long, there is a gap. Any ideas gratefully received.

Dave


=[Address]& vbCrLf &[Postcode]
Nov 13 '05 #2
"Dave" <no****@yourbusiness.com> wrote in message news:<41***********************@ptn-nntp-reader01.plus.net>...
Using Access 2000, I'm looking for a way to concatenate two fields in an
expression within a report. Basically, the two are an address field (memo
type) and postcode (text). I know about the expression itself and use the
syntax =[Address]&" "&[Postcode] but ofcourse, the postcode appears on the
same line as the last line of the address. What I really want to be able to
do is to have it on the next line. I could use a separate control, but if
the address is only 2 lines long, there is a gap. Any ideas gratefully
received.

Dave


vbCrLf? or I think it's chr$(16) & chr$(34)
Nov 13 '05 #3
"Pieter Linden" <pi********@hotmail.com> wrote in message
news:bf**************************@posting.google.c om...
"Dave" <no****@yourbusiness.com> wrote in message

news:<41***********************@ptn-nntp-reader01.plus.net>...
Using Access 2000, I'm looking for a way to concatenate two fields in an
expression within a report. Basically, the two are an address field (memo type) and postcode (text). I know about the expression itself and use the syntax =[Address]&" "&[Postcode] but ofcourse, the postcode appears on the same line as the last line of the address. What I really want to be able to do is to have it on the next line. I could use a separate control, but if the address is only 2 lines long, there is a gap. Any ideas gratefully
received.

Dave


vbCrLf? or I think it's chr$(16) & chr$(34)


Chr(13) & Chr(10), and it must be in that order

--
Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)


Nov 13 '05 #4
Douglas J. Steele (NOSPAM_djsteele@NOSPAM_canada.com) wrote:
: "Pieter Linden" <pi********@hotmail.com> wrote in message
: news:bf**************************@posting.google.c om...
:> "Dave" <no****@yourbusiness.com> wrote in message
: news:<41***********************@ptn-nntp-reader01.plus.net>...
:> > Using Access 2000, I'm looking for a way to concatenate two fields
:> > in an expression within a report. Basically, the two are an
:> > address field (memo type) and postcode (text). I know about the
:> > expression itself and use the syntax =[Address]&" "&[Postcode] but
:> > ofcourse, the postcode appears on the same line as the last line
:> > of the address. What I really want to be able to do is to have it
:> > on the next line. I could use a separate control, but if the
:> > address is only 2 lines long, there is a gap. Any ideas gratefully
:> > received.
:> >
:> > Dave
:>
:> vbCrLf? or I think it's chr$(16) & chr$(34)
:
: Chr(13) & Chr(10), and it must be in that order

I use vbNewLine myself...
--
Please remove the under_scores if sending me mail.
Nov 13 '05 #5
"Roald Oines" wrote
: Chr(13) & Chr(10), and it must be in that order

I use vbNewLine myself...


Like vbCrLF (which gives the identical actual character codes), vbNewLine
can only be used in VBA code. If using an expression in a Control Source,
for example, you must use the Chr(13) & Chr(10) that the vbCrLf or vbNewLine
would generate in VBA code.

Larry Linson
Microsoft Access MVP
Nov 13 '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: ...
1
by: dave | last post by:
I have placed html in the database. I am trying to capture items between two text blocks. The content string is like the following </FONT><BR> <BR> <BR> some text here<BR> <A NAME=" I am...
4
by: Josh | last post by:
Hi, I'm using System.Data.DataSet.ReadXml to convert some xml from a webservice to a DataSet. The xml looks like: <?xml version="1.0"...
5
by: aw | last post by:
Hi MVP's, I have a VB expression that inserts text in a report's textbox: (code in report's On-Active) If not isnull(forms!myform!subject1) then TextBox = "John Doe" End If
1
by: Jim Heavey | last post by:
In the Regular Expression, I can use \n for Line Feed, \t for a tab and \r for carriage return. Am I able to use thos same expressions in a "Replace method" of the string object? such as ...
2
by: David Cho | last post by:
I am using this expression \d+(,\s*\d+)* to allow only numbers and commas. But if there are carriage returns mixed, it is not validated. Is tehre a way to ignore all carriage returns? I...
8
by: mharry | last post by:
Hi guys! I have a VB6 program that uses FileSystemObject to read a csv file,Basically I want to add commas into a specified locations of the csv. The program works fine on a generic csv file...
1
by: Blue | last post by:
This JS limits the input characters into the form. How do I modify it so that it also allows CARRIAGE RETURN and BACKSPACE (for making text correction)? Due to the template engine I am using, I...
3
by: stevewy | last post by:
If the following line will force the user to input only a number between 1 and 5, and will give an error to any keypress outside that range: onkeyup="if(event.srcElement.value.search(new...
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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
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,...

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.