R
Roger Bell
I have the following in a text box ia Report which is returning an Error:
=Trim("Dear" & " " & IIf([pref]>0,[pref],IIf(InStr([firstname],"
")>0,Left([Firstname],InStr([Firstname]," ")-1),[firstname])))
What i am attempting is:
If the field [Pref] is greater than 0, then display [Pref], otherwise If the
field [firstname] is greater than 0, display just the first part of this
name, otherwise display the firstname.
The after [pref], works fine, so the problem appears to be in the code
preceeding this.
Any help would be appreciated.
=Trim("Dear" & " " & IIf([pref]>0,[pref],IIf(InStr([firstname],"
")>0,Left([Firstname],InStr([Firstname]," ")-1),[firstname])))
What i am attempting is:
If the field [Pref] is greater than 0, then display [Pref], otherwise If the
field [firstname] is greater than 0, display just the first part of this
name, otherwise display the firstname.
The after [pref], works fine, so the problem appears to be in the code
preceeding this.
Any help would be appreciated.