在报表控件框中使用Count和IIf表达式 [英] Using Count and IIf expression in a report control box
本文介绍了在报表控件框中使用Count和IIf表达式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在尝试使用具有Y值的字段STATUS计算表中的记录数。我正在使用表达式= Count(IIf([Status] =" Y,1,0)) 。它计算所有的值而不仅仅是Y'。我出错了什么想法?该字段在表格中有文本值。
我在报表的文本框中使用此表达式。
I''m trying to count the number of records in a table with the field STATUS that have a Y value. I''m using the expression "=Count(IIf([Status]="Y",1,0))" . It counts all the values not just the Y''s. Any ideas where I''m going wrong? The field has text values in the table.
I''m using this expression in a textbox in a report.
推荐答案
为什么不要你试过DCount()函数吗?
Why don''t you try the DCount() function?
展开 | 选择 | Wrap | 行号
我正在尝试使用具有Y值的字段STATUS计算表中的记录数。我正在使用表达式
I''m trying to count the number of records in a table with the field STATUS that have a Y value. I''m using the expression
展开 | 选择 | Wrap | 行号
为什么不试试DCount()函数?
Why don''t you try the DCount() function?
展开 | 选择 | Wrap | 行号
这篇关于在报表控件框中使用Count和IIf表达式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文