abcfantasy
Programmer
Hi,
I'm trying to use the lookup function from 2 datasets that get data from 2 different data sources. The result of the lookup function is just blank, no error or any value.
It only worked for me when using it on 2 datasets from the same data source. Is it restricted this way?
Below is simplified information on my implemention:
* DataSet1 contains fields Country, using DataSource1.
* DataSet2 contains fields Country and CountryCode, using DataSource2.
* A table is bounded to DataSet1, showing just Country. In another column, the cell has the expression:
=Lookup(Fields!Country.Value,Fields!Country.Value,Fields!CountryCode.Value, "DataSet2")
I don't have any parameters, filters, calculated fields or dynamic connection strings. And I am using the Report Designer and SQL Server 2008 R2.
Any help would be much appreciated.
Andrew.
Andrew
Research Assistant
I'm trying to use the lookup function from 2 datasets that get data from 2 different data sources. The result of the lookup function is just blank, no error or any value.
It only worked for me when using it on 2 datasets from the same data source. Is it restricted this way?
Below is simplified information on my implemention:
* DataSet1 contains fields Country, using DataSource1.
* DataSet2 contains fields Country and CountryCode, using DataSource2.
* A table is bounded to DataSet1, showing just Country. In another column, the cell has the expression:
=Lookup(Fields!Country.Value,Fields!Country.Value,Fields!CountryCode.Value, "DataSet2")
I don't have any parameters, filters, calculated fields or dynamic connection strings. And I am using the Report Designer and SQL Server 2008 R2.
Any help would be much appreciated.
Andrew.
Andrew
Research Assistant