New line in a Bounded control

M

Martin Rådbo

We use a query to add a few things to a table.

One of the fields in the query looks liek this: =[Value1] & " " & [Value2]

Later we produce a report based on table.

As you can see there will be a space addes between the two values. My
question is: Is there a syntax to add a new line instead.

I.e, in the bounded field in the report I want it like this:
"Value1
Value2"

and NOT like "Value1 Value2"

Anyone?

Thanks in advance
// Martin
 
R

Rick Brandt

Actually, in a query or Control expression you would need...

[Value1] & Chr(13) & Chr(10) & [Value2]

vbCrLf would work in code.


--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com


Larry Daugherty said:
=[Value1] & VBCRLF" & [Value2]

HTH
--
-Larry-
--

Martin Rådbo said:
We use a query to add a few things to a table.

One of the fields in the query looks liek this: =[Value1] & " " & [Value2]

Later we produce a report based on table.

As you can see there will be a space addes between the two values. My
question is: Is there a syntax to add a new line instead.

I.e, in the bounded field in the report I want it like this:
"Value1
Value2"

and NOT like "Value1 Value2"

Anyone?

Thanks in advance
// Martin
 
P

Peter

This might work better without the quote -
=[Value1] & VBCRLF & [Value2]

Peter

Larry said:
=[Value1] & VBCRLF" & [Value2]

HTH
--
-Larry-
--

Martin Rådbo said:
We use a query to add a few things to a table.

One of the fields in the query looks liek this: =[Value1] & " " & [Value2]

Later we produce a report based on table.

As you can see there will be a space addes between the two values. My
question is: Is there a syntax to add a new line instead.

I.e, in the bounded field in the report I want it like this:
"Value1
Value2"

and NOT like "Value1 Value2"

Anyone?

Thanks in advance
// Martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top