Inquisitor99
Programmer
I am trying to customize a field code in my Word 2000 mail merge document so that the last name displays with an apostrophe + "s" if the last name does not end in "s", or it should display with just an apostrophe if the last name ends in "s".
Example:
If last name ends in "s", as in Simmons, display --> Simmons'
If last name does not end in "s", as in Miller, display --> Miller's
I would like to use the "Right" string function to get the last character of the field "LastName", but I am not having any luck constructing the correct syntax.
Here is the field code without the string function:
{IF {MERGEFIELD LastName} = "s" "'" "'s"
Does anyone know the correct syntax for inserting the "Right" string function, or is there some other way to accomplish this?
Thanks.
Example:
If last name ends in "s", as in Simmons, display --> Simmons'
If last name does not end in "s", as in Miller, display --> Miller's
I would like to use the "Right" string function to get the last character of the field "LastName", but I am not having any luck constructing the correct syntax.
Here is the field code without the string function:
{IF {MERGEFIELD LastName} = "s" "'" "'s"
Does anyone know the correct syntax for inserting the "Right" string function, or is there some other way to accomplish this?
Thanks.