I have a query that joins first name, last name and Middle Initial. On the middle initial, if there is one, we add a . to the end. If there isn't one, then return a blank. All of the sudden, the only thing that is returning is the first name. Individually the fields work fine, it is just when the concatenation is happening. Any ideas/suggestions?
Here is what we use:
Original line was:
FullName: [first_name] & " " & [mi] & IIf(IsNull([mi]),"",". ") & [last_name]
Then switched it to:
FullName: [first_name] & " " & IIf(Trim([mi] & "")="","",[mi] & ". ") & [last_name]
REsults should be:
Joe R. Smith or
Joe Smith
What I get is Joe in both cases
Thanks
Here is what we use:
Original line was:
FullName: [first_name] & " " & [mi] & IIf(IsNull([mi]),"",". ") & [last_name]
Then switched it to:
FullName: [first_name] & " " & IIf(Trim([mi] & "")="","",[mi] & ". ") & [last_name]
REsults should be:
Joe R. Smith or
Joe Smith
What I get is Joe in both cases
Thanks