CONCATENATE QUESTIONS

S

Sammie

2 questions:
1. When concatenating a string on a report, how can I enter a carriage
return to start a new line? Or enough spaces to accomplish the same
thing? I would like a new line to start after "Ship's spares in
transit" and before [shipaddress] in the first half of my expression.
Here's my statement:
=IIf([ShipSparesInTransit]=-1,"SHIP'S SPARES IN TRANSIT" &
[ShipAddress],[ShipAddress])

2. How do I format the [ship date] field for a long date in this
expression:
=[ship date] & " via " & [carrier]
Thanks.
Sammie
 
R

Rick Brandt

Sammie said:
2 questions:
1. When concatenating a string on a report, how can I enter a carriage return
to start a new line? Or enough spaces to accomplish the same thing? I would
like a new line to start after "Ship's spares in transit" and before
[shipaddress] in the first half of my expression. Here's my statement:
=IIf([ShipSparesInTransit]=-1,"SHIP'S SPARES IN TRANSIT" &
[ShipAddress],[ShipAddress])

IIf([ShipSparesInTransit]=-1,"SHIP'S SPARES IN TRANSIT"
& Chr(13) & Chr(10) & [ShipAddress],[ShipAddress])

2. How do I format the [ship date] field for a long date in this expression:
=[ship date] & " via " & [carrier]

=Format([ship date], "long date") & " via " & [carrier]
 
S

Sammie

Rick said:
2 questions:
1. When concatenating a string on a report, how can I enter a carriage return
to start a new line? Or enough spaces to accomplish the same thing? I would
like a new line to start after "Ship's spares in transit" and before
[shipaddress] in the first half of my expression. Here's my statement:
=IIf([ShipSparesInTransit]=-1,"SHIP'S SPARES IN TRANSIT" &
[ShipAddress],[ShipAddress])


IIf([ShipSparesInTransit]=-1,"SHIP'S SPARES IN TRANSIT"
& Chr(13) & Chr(10) & [ShipAddress],[ShipAddress])


2. How do I format the [ship date] field for a long date in this expression:
=[ship date] & " via " & [carrier]


=Format([ship date], "long date") & " via " & [carrier]
WORKS GREAT! THANKS!
 

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

Similar Threads

Concatenating 1
Error '3163' 1
Bad Date - Format Problem 2
Find a value using a lookup expression 6
concatenate 1
Multiple conditions 2
Send Subform data through email 0
Access Property sheet data missing also syntax 0

Top