<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.asp.net/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>SQL Server Reporting Services</title><link>http://forums.asp.net/191.aspx</link><description>Anything and everything pertaining to SQL Server Reporting Services.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP1 (Build: 20510.895)</generator><item><title>Re: Using Two TableAdapters in One Report File (Visual Studio 2005)</title><link>http://forums.asp.net/thread/3213947.aspx</link><pubDate>Fri, 05 Jun 2009 19:52:58 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3213947</guid><dc:creator>therealgeddylee</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3213947.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=191&amp;PostID=3213947</wfw:commentRss><description>Woops, nevermind. I resolved the issue by creating a subreport in the report file, and magically that made me able to reference data from the secondary tableadapter. :)</description></item><item><title>Using Two TableAdapters in One Report File (Visual Studio 2005)</title><link>http://forums.asp.net/thread/3213896.aspx</link><pubDate>Fri, 05 Jun 2009 19:28:28 GMT</pubDate><guid isPermaLink="false">4c671506-2930-414c-a40b-8bf57ded5924:3213896</guid><dc:creator>therealgeddylee</dc:creator><slash:comments>0</slash:comments><comments>http://forums.asp.net/thread/3213896.aspx</comments><wfw:commentRss>http://forums.asp.net/commentrss.aspx?SectionID=191&amp;PostID=3213896</wfw:commentRss><description>Hey everyone,&lt;br /&gt;
I have been trying for several hours to figure out why I cannot get this to work properly, but I cannot figure out how to do it. Basically, this is my setup:&lt;br /&gt;
-1 aspx page&lt;br /&gt;
-on the page, one reportviewer control, linked to a local report&lt;br /&gt;
-1 report file (rdlc)&lt;br /&gt;
-1 DataSet with 2 TableAdapters, both tableadapters with their own query.&lt;br /&gt;
&lt;br /&gt;&lt;br /&gt;
Now, when I edit the report file, I have a table that I dragged the appropriate fields onto for the first Table Adapter, called just DataTable1.
&lt;br /&gt;&lt;br /&gt;
Also on the report file is another table that should display data from the second tableadapter, DataTable2.
However, when I go to drag columns from the Webite Data Sources panel, instead of the usual =Fields!column.Value expression being added to the cell, it&amp;#39;s making it 
=First(Fields!mv_fault2.Value, &amp;quot;DataSet1_DataTable2&amp;quot;) 
for the first column, and  
=Sum(Fields!currentYear_minusFive2.Value, &amp;quot;DataSet1_DataTable2&amp;quot;)
for the rest of them.
&lt;br /&gt;&lt;br /&gt;
So when I run the report, there is data displayed,  but the first expression messes up the data that is returned. If I change each one to just =Fields!columnname.value, I get the following error:
&amp;quot;Report item expressions can only refer to fields within the current data set scope or, if inside an aggregate, the specified data set scope.&amp;quot;
&lt;br /&gt;&lt;br /&gt;
Does anyone know how I could use returned data from both of my tableadapters in the same rdlc file?
&lt;br /&gt;&lt;br /&gt;
Thanks!</description></item></channel></rss>