Access Query to Form Concatenating doesn't wrap

CLCoop

Board Regular
Joined
May 30, 2018
Messages
56
Within my Query I have concatenated a few fields as follows:
Paragraph: [Comments] & " " & Format([currency],'Currency') & ". " & [Comments/Description] by Group.

The fields: The Comments and Comments/Description are set to Rich text as are the fields on the tables, forms, and query, reports all set to rich and grow. This is a screen shot of what it turns out looking like each field of the concatenate on an individual line
1579726742049.png


When I am wanting to get it to word wrap like this:
Is this going to word wrap like it should or is this going to just keep doing what it is doing. $1,000.00. I hope
this word wars after the dollar amount.
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
you can wrap it all in a replace function:

Replace char(13) with ''
Replace char(10) with ''


however, this gets ugly - you might end up smashing things together if the newlines are separating words.

I.e.:

one line
followed by another


will turn into:
onelinefollowed by another

That's a new problem ... you might then replace the newlines with spaces instead, then replace doubled spaces with single spaces, which fixes the spacing. Or just leave it as is with doubled spaces if it's not a huge deal. Obviously there is a possibility of altering existing doubled spaces in the text but that's probably not an issue generally speaking.

A custom function could be better if you need more finely grained logic to remove the newlines.
 
Upvote 0
thank you for your quick response I must be missing something this is what I put in but get errors:
Paragraph: Replace(Replace([Comments] & " " & Format([currency],'Currency') & ". " & [Comments/Description],Char(13),""),Char(10),"")
 
Upvote 0
sorry vba might use the chr() function instead of char().
 
Upvote 0

Forum statistics

Threads
1,214,908
Messages
6,122,187
Members
449,071
Latest member
cdnMech

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top