Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
TRIM([ Title]) & ' ' & TRIM(Initials) & ' ' &TRIM([ Name])
as per above concatenation we are facing space issue while 1 of the field is missing like Title or Initials.
LIke examle :
Alex D voyger ---------this is right out come.
but if some one who don;t have either title or initial than coming doule space instead of single spcae.
Like ::::Without title
' D cow'
Like :: without intital
"Mr Tad" double space between title and name ...
please suggest.
Use something like this -
TRIM([ Title]) & if(len(Title)>0,' ') & TRIM(Initials) & if(len(Initials)>0,' ')&TRIM([ Name])
Hi Virendra ,
Simply try,
Replace( [ Title] & ' ' & Initials & ' ' & [ Name] , ' ' , ' ' )
Hi,
Simply use Replace() to convert two spaces to single space like below
Replace([ Title] & ' ' & Initials & ' ' & [ Name] , ' ', '')
Replace([ Title] & ' ' & Initials & ' ' & [ Name] , 'Give double space here', 'Single space')
Regards,
jagan.
try like this
replace(filed1&filed2&filed3,' ','')
Hi, try this:
Trim(Replace(TRIM([ Title]) & ' ' & TRIM(Initials) & ' ' &TRIM([ Name]),' ',' '))
You will remove start space and double spaces.
Regards!
Very Nice jagan and others. Thanks for sharing this