G
Guest
Hi. I have a snippet of sql that I'm trying to modify.
Here's my example: John Doe and Susie Anderson are spouses. I've been
listing their names using:
(IIf(Len(Trim([SO Name]) & "")=0,Trim([Member Name]),Trim([Member Name] & "
& " & [SO Name]))) AS JointName
(this allows singles to still have a JointName, which is their single name)
However, if Susie is PrimaryFamilyMember = Yes, I want the name order to be
Susie Anderson and John Doe.
I'm trying to figure out how to say If Contacts.PrimaryFamilyMember <>0,
have JointName be Trim([Member Name] & " & " & [SO Name]
otherwise JointName should be Trim([SO Name] & " & " & [Member Name]
I'd appreicate assistance navigating IIf. Thanks for your time.
Here's my example: John Doe and Susie Anderson are spouses. I've been
listing their names using:
(IIf(Len(Trim([SO Name]) & "")=0,Trim([Member Name]),Trim([Member Name] & "
& " & [SO Name]))) AS JointName
(this allows singles to still have a JointName, which is their single name)
However, if Susie is PrimaryFamilyMember = Yes, I want the name order to be
Susie Anderson and John Doe.
I'm trying to figure out how to say If Contacts.PrimaryFamilyMember <>0,
have JointName be Trim([Member Name] & " & " & [SO Name]
otherwise JointName should be Trim([SO Name] & " & " & [Member Name]
I'd appreicate assistance navigating IIf. Thanks for your time.