Paul Barrett
asked on
Replace ", " with Return and Line Feed - Replace Function Microsoft Access
Hi all,
I am importing a list of addresses into an Access table and a typical address is:
100 High Street, Some Town, Some County, Some Postcode
I need to use the replace function to get it to look like:
100 High Street
Some Town
Some County
Some Postcode
Am happy to replace function at query level to "a" with "b", but not sure how to handle the above regarding Returns and Linefeeds, Thanks
I am importing a list of addresses into an Access table and a typical address is:
100 High Street, Some Town, Some County, Some Postcode
I need to use the replace function to get it to look like:
100 High Street
Some Town
Some County
Some Postcode
Am happy to replace function at query level to "a" with "b", but not sure how to handle the above regarding Returns and Linefeeds, Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks, worked fine, just needed to amend to ", " i.e. include the space character to be replaced as well.
UPDATE YourTable
SET YourField = Replace(YourField, ",", Chr(10) & Chr(13))
Make a backup before testing any action query.