Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
I dragged controls from two different datasets.

On dataset feeds a table and other controls are just to show a few values.

When I run the project, I get following error.


The Value expression for the textbox ‘Name_1’ uses an aggregate expression without a scope. A scope is required for all aggregates used outside of a data region unless the report contains exactly one data set. D:\Accounts\rptPrintDrawings.rdlc

Please advise.

Thank / Furqan
Posted

1 solution

It seems like you are using more than one dataset / datatable in your report
Specify a scope for the text box

Here's an example of a textbox value without a scope:
=First(Fields!xxx.Value)
(does not have a scope, valid if only one datatable / source is attached to your report)

If you have multiple tables, specify it using the scope Eg:
=First(Fields!xx.Value, "DataSet1_DataTable1")
=First(Fields!xx.Value, "DataSet1_DataTable2")
 
Share this answer
 
Comments
Dalek Dave 11-Mar-11 4:51am    
Good Example
Muthu kumar246 21-Jan-13 1:56am    
Thanks for your info!!..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900