文本框“名称_1"的值表达式使用不带范围的聚合表达式 [英] The Value expression for the textbox ‘Name_1’ uses an aggregate expression without a scope

查看:183
本文介绍了文本框“名称_1"的值表达式使用不带范围的聚合表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从两个不同的数据集中拖动了控件.

在数据集供稿上,表格和其他控件仅用于显示一些值.

运行项目时,出现以下错误.


文本框名称_1"的值表达式使用不带范围的聚合表达式.除非报告中仅包含一个数据集,否则在数据区域外使用的所有聚合都需要一个范围. D:\ Accounts \ rptPrintDrawings.rdlc

请指教.

感谢/Furqan

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

推荐答案

似乎您的报告中使用了多个数据集/数据表
指定文本框的范围

这是一个没有范围的文本框值的示例:
= First(字段!xxx.Value)
(没有作用域,仅在报表中附加一个数据表/源时有效)

如果您有多个表,请使用范围Eg:
进行指定. = First(Fields!xx.Value,"DataSet1_DataTable1")
= First(Fields!xx.Value,"DataSet1_DataTable2")
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")


这篇关于文本框“名称_1"的值表达式使用不带范围的聚合表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆