Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
jenmclean
Contributor III
Contributor III

Trim Leading Space


Kind of stuck on this one, I need to trim the leading spaces from only PEO_FirstName and it does not appear to be working. What would be the correct syntax for this line?

Upper(LTrim(PEO_FirstName)) & ' ' & Upper(PEO_LastName) as KEY|CustomerName,

Thanks!

1 Solution

Accepted Solutions
Anonymous
Not applicable

Try:

Upper(LTrim(PEO_FirstName & ' ' & PEO_LastName))   as  KEY|CustomerName,


Regards.

PS:

It should work this way, if shouldn't make sure trailing spaces are what expected.

Good Luck.

View solution in original post

6 Replies
Anonymous
Not applicable

Try:

Upper(LTrim(PEO_FirstName & ' ' & PEO_LastName))   as  KEY|CustomerName,


Regards.

PS:

It should work this way, if shouldn't make sure trailing spaces are what expected.

Good Luck.

MayilVahanan

HI

can you provide a sample data?

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
CELAMBARASAN
Partner - Champion
Partner - Champion

Try

Upper(Trim(PEO_FirstName)) & ' ' & Upper(PEO_LastName) as KEY|CustomerName,

Not applicable

replace(PEO_FirstName,' ','')

rustyfishbones
Master II
Master II

Can you upload an example.

The expression looks ok to me.

I would use TRIM(UPPER(PEO_FirstName)) rather than UPPER(TRIM(PEO_FirstName))

but I dont think that matters anyway

jenmclean
Contributor III
Contributor III
Author

That did it! Thanks so much!