I'm using an Access template called "Charitable Contributions web database" (converted to desktop) that has a calculated field that takes a donor's first name and last name and creates a new field using first name and last name. So
First Name: John
Last Name: Doe
Results in Donor: John Doe.
This is the expression: IIf(IsNull([LastName]),IIf(IsNull([FirstName]),[Company],[FirstName]),IIf(IsNull([FirstName]),[LastName],[FirstName] & " " & [LastName]))
I want to be more formal and address John Doe as Mr. Doe. And if there's a Spouse named Jane, then Mr. and Mrs. Doe. So I added fields for SpouseFirstName and Title. Can anyone tell me how I would adjust the above expression to result in Mr. and Mrs. John Doe? By the way, I'm not sure why [Company] appears in the above expression; seems highly unlikely I would ever be addressing a company and not an individual.
Thanks!
First Name: John
Last Name: Doe
Results in Donor: John Doe.
This is the expression: IIf(IsNull([LastName]),IIf(IsNull([FirstName]),[Company],[FirstName]),IIf(IsNull([FirstName]),[LastName],[FirstName] & " " & [LastName]))
I want to be more formal and address John Doe as Mr. Doe. And if there's a Spouse named Jane, then Mr. and Mrs. Doe. So I added fields for SpouseFirstName and Title. Can anyone tell me how I would adjust the above expression to result in Mr. and Mrs. John Doe? By the way, I'm not sure why [Company] appears in the above expression; seems highly unlikely I would ever be addressing a company and not an individual.
Thanks!