O
Owl
My parameter in Criteria in a query is the following:
Contact: IIf(Trim([Surname])="",(Trim([FirstName]),(Trim([Surname]) & ", " &
Trim([FirstName]))))
I am intending it to give me:
Surname, FirstName
but if there is no Surname, then:
FirstName (without the space and the comma)
Can somebody please correct the above parameter so that it will give me what
I am wanting?
Thank you for any help.
Contact: IIf(Trim([Surname])="",(Trim([FirstName]),(Trim([Surname]) & ", " &
Trim([FirstName]))))
I am intending it to give me:
Surname, FirstName
but if there is no Surname, then:
FirstName (without the space and the comma)
Can somebody please correct the above parameter so that it will give me what
I am wanting?
Thank you for any help.