Hello,
I want to give an expression to my textbox in the header of my report page.
But when I do an if statement like:=IIf(ReportItems!PageNumberTotalTextBox.Value = "", "1", ReportItems!PageNumberTotalTextBox.Value)
it gives me the following error:
the Value expression for the textbox ‘textbox1’ refers to more than one report item. An expression in a page header or footer can refer to only one report item.
Also, when I try to merge/combine different fields on my header (like the code below) it gives me the same error, that I can't use more then 1 reportitem.
=ReportItems!PageTextBox.Value & " of " & ReportItems!PageNumberTotalTextBox.Value
How can I bypass this? I find it rather strange that I can only use a reportitems once in the header, and multiple times in the body.
Thanks in advance for your help,
Gert