I have an Access database that includes a table of remarks entered by users via a form that did not have the feature enabled that allowed a user to hard return (Enter Key Behavior was NOT set to New Line in Field). As a result, some users entered a lot of spaces when they had multiple themes in a single comment to force a (displayed) wrap to a new line to separate those themes in the form field. Of course, all those spaces were stored in the table's field and now, when I call that table's contents into a new report, those comments display horribly. In Excel, I could drop out all those extra spaces using the TRIM function. In Access (assuming I understand this correctly, which may not be true), the TRIM function only removes extra spaces at the beginning and ending of the memo field records - that is, it will not remove those long strings of spaces that are in the middle of the comments. I can't use ACCESS's REPLACE function for a one-time cleanup because each set of spaces is a variable width (i.e. if I search for instances of 2 consecutive spaces and replace them with a single space, I'd have to run that function three times to get all the 8 space strings reduced to 4, then to 2, then to just 1).
While the immediate problem is resolving how these fields display on my new report, I should ultimately update the table to replace these space-y historic records with a cleaned-up (single spaces) version. I have changed the properties on the data collection form to allow hard returns, so I think future records will be collected cleanly.
Curiously, if I copy the table's comments field (whole column) from Access to Excel and paste matching the (default) destination formatting, Excel does automatically cleans up those records. If Excel can figure that out on the fly, I'd like Access to have a text/memo box property for reports that could do the same, but I don't think any such functionality exists in Access.
So... ideally without resorting to VBA, any ideas on how to get those space-y comments to render with just single spaces on my Access report?
Thanks!
SDL
While the immediate problem is resolving how these fields display on my new report, I should ultimately update the table to replace these space-y historic records with a cleaned-up (single spaces) version. I have changed the properties on the data collection form to allow hard returns, so I think future records will be collected cleanly.
Curiously, if I copy the table's comments field (whole column) from Access to Excel and paste matching the (default) destination formatting, Excel does automatically cleans up those records. If Excel can figure that out on the fly, I'd like Access to have a text/memo box property for reports that could do the same, but I don't think any such functionality exists in Access.
So... ideally without resorting to VBA, any ideas on how to get those space-y comments to render with just single spaces on my Access report?
Thanks!
SDL