I have placed an expression column to concatenate the whole names of clients.
I used an IIF as the expression. I originally used " " to make a space and " and " to of course make the word and with a space on each side of it.
WholeNames: IIf([FName2] Is Not Null,IIf([ComLaw]=True,[FName1] & [ ] & [LName1] & [ ] & [“and”] & [FName2] & [ ] & [LName2],[FName1] & [“and”] & [FName2] & [ ] & [LName1]),[FName1] & [ ] & [LName1])
When I run the query I get a parameter dialog box asking me to enter the parameter value. It makes no difference if I have "" in there with no square brackets or whether I have it placed in the square brackets.
I realize that normally these kind of IIF's are better placed in a report or in word when the names are merged.
I would really like to use the expression field in Word rather than placing the code there.
Why does my query not recognise my & " " & ?
Thanks
Carol