Hi All
SSRS 2008 R2
I have a report that has 5 datasets. Some of the fields on my report are populated by using the LOOKUP function e.g.
=Lookup(Fields!Employee.Value, Fields!EmployeeID.Value, Fields!Bank_Details_Added.Value, "BankDetails")
What I want to do is set the background color of all fileds when a value = 'False'. E.g> =IIF(Fields!Account.Value ="False","Red","White"). This works fine for fields that are part of the original dataset but not fields that are populated by the LOOKUP. I get the following message:
The BackgroundColor expression for the text box 'Textbox7' referes to the field 'Account'. Report item expressions can only refer to fields within the current dataset scope or, if inside an aggregate, the specified dataset scope.
I've tried adding the dataset scope by doing =IIF(Fields!Account.Value, "BankDetails" ="False","Red","White") but it just wont work.
Does anyone know how to set the background color on a text box when the text box is populated by a LOOKUP?
Many thanks