I have a name field that is formated like Smith, John D. Can someone tell me what the best way to reformat it to John D. Smith would be? I could drop back out to sql and do it, but if I can, I'd rather do it in crystal.
if i=0 then // no comma so can't split it
{table.name}
else
mid({table.name},i+2) & left({table.name),i-1)
I'm assumning that the format is always Surname, firstname
(i.e. there is a space after the comma that we don't want)
Editor and Publisher of Crystal Clear
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.