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 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]
"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)
"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!)
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.
"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 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Canes_Rock |
last post by:
The information posted at:
...
|
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...
|
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"...
|
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
|
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
...
|
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...
|
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...
|
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...
|
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...
|
by: Charles Arthur |
last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
|
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$) {
}
...
|
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...
|
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
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
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...
|
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...
|
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,...
|
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,...
| |