Adding & Removing Spaces In An Address Field
Posted: Sun Feb 26, 2006 4:08 pm
Can someone help me?
I have a field titled "Address Line" which combines the values of fields "Title", "Spouse", "First Name" and "Last Name."
PROBLEM: This calculation adds a space before "First Name" if there is NO Title.
Title & " " & If(IsEmpty(Spouse:); ""; "and Mrs. ") & First Name & " " & Last Name
PROBLEM: This calculation takes out the space before "First Name" but then does NOT have a space between "Title" and "First Name" if there IS a "Title."
Title & If(IsEmpty(Title); "" ) & If(IsEmpty(Spouse:); ""; "and Mrs. ") & Name First & " " & Name Last
Can someone help me get the spacing correct? I'm sure the solution is fairly simple but I’m too simple to get anything to work.
Thanks,
Ralph
I have a field titled "Address Line" which combines the values of fields "Title", "Spouse", "First Name" and "Last Name."
PROBLEM: This calculation adds a space before "First Name" if there is NO Title.
Title & " " & If(IsEmpty(Spouse:); ""; "and Mrs. ") & First Name & " " & Last Name
PROBLEM: This calculation takes out the space before "First Name" but then does NOT have a space between "Title" and "First Name" if there IS a "Title."
Title & If(IsEmpty(Title); "" ) & If(IsEmpty(Spouse:); ""; "and Mrs. ") & Name First & " " & Name Last
Can someone help me get the spacing correct? I'm sure the solution is fairly simple but I’m too simple to get anything to work.
Thanks,
Ralph