Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/35.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Asp.net RDLC报告服务在求和列时给出错误_Asp.net_Ms Access_Reporting_Rdlc - Fatal编程技术网

Asp.net RDLC报告服务在求和列时给出错误

Asp.net RDLC报告服务在求和列时给出错误,asp.net,ms-access,reporting,rdlc,Asp.net,Ms Access,Reporting,Rdlc,我正在使用Access数据库提取数据,并使用报表进行显示 在我的表格中有一列包含佣金数据,但每次我添加 =Sum(Fields!Commission.Value)在空单元格中显示求和值时,我得到一个错误。在SSRS中,需要两个字段求和,并且在函数之前必须有一个=符号。。如下所示 =Sum(Fields!Commission.Value) 确保字段为Int而不是String,如果是,请将其转换为整数以求和。尝试以下操作: =Sum(int(Fields!Commission.Value)) 可

我正在使用Access数据库提取数据,并使用报表进行显示

在我的表格中有一列包含佣金数据,但每次我添加

=Sum(Fields!Commission.Value)
在空单元格中显示求和值时,我得到一个错误。

SSRS
中,需要两个字段求和,并且在函数之前必须有一个
=
符号。。如下所示

=Sum(Fields!Commission.Value)

确保字段为Int而不是String,如果是,请将其转换为整数以求和。

尝试以下操作:

=Sum(int(Fields!Commission.Value))

可能您正在使用
字符串
,因此首先将其转换为
int

我也有同样的问题,如何将字符串转换为int?@EhsanAkbar I只有您会标记我,我会立即回答。