reneev
Board Regular
- Joined
- Apr 26, 2017
- Messages
- 53
So, our payroll system doesn't know how to properly space text in a report to be exactly how long the word or words are therefore we have to estimate the spacing to be x number of spaces. Which means if the word or words are shorter than x number, the rest of the field contains spaces.
For example, if we set the the full name field to 20 characters then the following name would come out like this (where ^ are extra spaces).
Doe, John F^^^^^^^^^ (11 actual characters and 9 spaces at the end).
This makes it difficult to use the data elsewhere without manually deleting the extra spaces or using the Text to Columns function then Concatenating everything back together.
This happens for all fields in our reports however it's only a real problem with text because number fields usually have a set number of characters (dates, SS#, etc...)
Is there a better way to strip those extra spaces?
For example, if we set the the full name field to 20 characters then the following name would come out like this (where ^ are extra spaces).
Doe, John F^^^^^^^^^ (11 actual characters and 9 spaces at the end).
This makes it difficult to use the data elsewhere without manually deleting the extra spaces or using the Text to Columns function then Concatenating everything back together.
This happens for all fields in our reports however it's only a real problem with text because number fields usually have a set number of characters (dates, SS#, etc...)
Is there a better way to strip those extra spaces?