tripleblessed
Technical User
Hi,
In my report, I publish each person's Last name, First name, MI, Suffix, Preferred Name, and Class Year. I would like to add quotes around the Preferred Name if the field is not null (if they have a nickname they prefer). Here's an example: Adams, Jeffrey M. "Jeff" '86
How do I add the quotes to my statement:
=IIf(((Trim([Publish])="H" Or Trim([Publish])="B" Or Trim([Publish])="W") And Trim([Last Name])<>""),UCase([Last Name]) & ", " & UCase([First Name]) & " " & UCase([MI]) & " " & UCase([Suffix]) & " " & UCase([Preferred Name]) & " '" & Right([Class Year],2),"")
Thanks for your help!
In my report, I publish each person's Last name, First name, MI, Suffix, Preferred Name, and Class Year. I would like to add quotes around the Preferred Name if the field is not null (if they have a nickname they prefer). Here's an example: Adams, Jeffrey M. "Jeff" '86
How do I add the quotes to my statement:
=IIf(((Trim([Publish])="H" Or Trim([Publish])="B" Or Trim([Publish])="W") And Trim([Last Name])<>""),UCase([Last Name]) & ", " & UCase([First Name]) & " " & UCase([MI]) & " " & UCase([Suffix]) & " " & UCase([Preferred Name]) & " '" & Right([Class Year],2),"")
Thanks for your help!