B
Brushcut1
There are two fields in the report that I need to
selectively not print in the Report.
They are: [Phone Number] and [E-mail Address]
There are also two additional 1 character fields named:
[Publish Phone N] and [Publish Email] containing either Y
or N.
In the Report Design view, under detail, when the field
is defined as "Phone Number" it prints all the phone
numbers in the report. However, I have been trying to
replace "Phone Number" with an "IF" expression.
I have coded it as follows but cannot get it to work:
IIf([Publish Phone N]="Y",[Phone Number]," ")
Should the If be "If" or "IIf"?
I'm new to using Access.
Thanks, Dick
selectively not print in the Report.
They are: [Phone Number] and [E-mail Address]
There are also two additional 1 character fields named:
[Publish Phone N] and [Publish Email] containing either Y
or N.
In the Report Design view, under detail, when the field
is defined as "Phone Number" it prints all the phone
numbers in the report. However, I have been trying to
replace "Phone Number" with an "IF" expression.
I have coded it as follows but cannot get it to work:
IIf([Publish Phone N]="Y",[Phone Number]," ")
Should the If be "If" or "IIf"?
I'm new to using Access.
Thanks, Dick