W
William Gieske
I have an Excel "database" consisting of high school classmates. Pertinent
fields for this question are FirstName, LastName and MarriedName. LastName is
the last name of the classmate when they were in high school. If they are
married, it's their maiden name.
For mailing purposes, if the classmate is married, the name line should
read: FirstName (LastName) MarriedName. If the classmate is not married, then
it should read FirstName LastName. And of course, for the men, it's always
FirstName LastName.
To accomplish this, I want to use an If field field code. Help says the
format is:
{ IF Expression1 Operator Expression2 TrueText FalseText }
That translates to { IF MarriedName = "" True False }
This obviously does not work. I think I need { MergeField MarriedName }
instead of just the field name. But that does not seem to get the job done.
Ultimately, the statement needs to print either of the above two name line
formats, depending on whether there is a name in the MarriedName column in
the spreadsheet.
I've tried various combinations from the spartan examples given in the help
file, but have yet to get this to work.
Any help would be appreciated.
fields for this question are FirstName, LastName and MarriedName. LastName is
the last name of the classmate when they were in high school. If they are
married, it's their maiden name.
For mailing purposes, if the classmate is married, the name line should
read: FirstName (LastName) MarriedName. If the classmate is not married, then
it should read FirstName LastName. And of course, for the men, it's always
FirstName LastName.
To accomplish this, I want to use an If field field code. Help says the
format is:
{ IF Expression1 Operator Expression2 TrueText FalseText }
That translates to { IF MarriedName = "" True False }
This obviously does not work. I think I need { MergeField MarriedName }
instead of just the field name. But that does not seem to get the job done.
Ultimately, the statement needs to print either of the above two name line
formats, depending on whether there is a name in the MarriedName column in
the spreadsheet.
I've tried various combinations from the spartan examples given in the help
file, but have yet to get this to work.
Any help would be appreciated.