Simple Carriage Return!

riekie

New member
Local time
Today, 16:46
Joined
Dec 15, 2013
Messages
5
Hi, I have a table called Customers:

I have a column called Address

With Records like this:

Address
Farm, Long Road, North

I want to use a Carriage Return query to make the record read like this:

Address
Farm
Long Road
North

I know I can use Chr(13) and Chr(10) within the query.
But Dont know how to structure it in SQL or simple Design View

Thanks
 
Here's a sample from the immediate window
Code:
x="city, town, state, zip"
x= replace(x,", ", vbcrlf)
?x
city
town
state
zip

So in your sql you could try

Select Replace("Address",",",vbcrlf) as AddressVertical from Customers;

you could replace vbcrlf with Chr(10)& Chr(13)
 

Users who are viewing this thread

Back
Top Bottom