G
Guest
I am an Access novice who needs some help. My report derives its data from a
query which returns a number of variables including [C_P] (value either "C"
or"P") and Centres.name.
If I use Centres.name in a text box, the value of Centres.name is printed as
expected. However, I need to suppress the printing of Centres.name if [C_P]
= "P". So, I am trying to use the following expression in the text box:
=IIF([C_P]="C", Centres.name,"")
Running the report then asks me for the value of the parameter Centres.
What do I need to do
Any help would be much appreciated.
Jim Jones
PS I know that Name is a reserved work and so I shouldn't be using it as a
variable name - I intend doing something about this when I find the time.
query which returns a number of variables including [C_P] (value either "C"
or"P") and Centres.name.
If I use Centres.name in a text box, the value of Centres.name is printed as
expected. However, I need to suppress the printing of Centres.name if [C_P]
= "P". So, I am trying to use the following expression in the text box:
=IIF([C_P]="C", Centres.name,"")
Running the report then asks me for the value of the parameter Centres.
What do I need to do
Any help would be much appreciated.
Jim Jones
PS I know that Name is a reserved work and so I shouldn't be using it as a
variable name - I intend doing something about this when I find the time.