G
Guest
I would like to truncate a text string, not just by character length, but
also taking into consideration not truncating in the middle of the last word
in the string. Therefore, here is a sample situation:
1. I want to truncate at 25 characters from the left.
2. However, I want to truncate earlier in order to accomodate the last
complete word.
Example:
1. ORIGINAL STRING: Sally sells sea shells down by the seashore. (44
characters total)
2. SIMPLE TRUNCATION AT 25 CHARACTERS: Sally sells sea shells do
3. TRUNCATION <=25 BUT WITH LAST FULL WORD: Sally sells sea shells
Can someone help me with this last scenario. I've done it successfully in
FileMaker Pro, as I found a function to get the number of words in a string.
Is there something as easy in Access?
also taking into consideration not truncating in the middle of the last word
in the string. Therefore, here is a sample situation:
1. I want to truncate at 25 characters from the left.
2. However, I want to truncate earlier in order to accomodate the last
complete word.
Example:
1. ORIGINAL STRING: Sally sells sea shells down by the seashore. (44
characters total)
2. SIMPLE TRUNCATION AT 25 CHARACTERS: Sally sells sea shells do
3. TRUNCATION <=25 BUT WITH LAST FULL WORD: Sally sells sea shells
Can someone help me with this last scenario. I've done it successfully in
FileMaker Pro, as I found a function to get the number of words in a string.
Is there something as easy in Access?