Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
这是在 Access 2007 中。我尝试过编写如下内容:
Forms!MyForm!TextBox = Count(ISNUMERIC(ISNUMERIC(QueryResult.Reading)))
但这会返回非数字结果。我也试过:
Forms!MyForm!TextBox = IIF(ISNUMERIC(QueryResult.Reading),Count(ISNUMERIC(QueryResult.Reading),"")
有人有想法么?我搞不清楚了。
尝试使用 SUM 而不是 COUNT,这样,如果结果是数字,则计算结果,如果不是,则忽略它。请注意,我无法测试下面的代码,但它应该让您了解我的意思。
Forms!MyForm!TextBox = SUM(IIF(ISNUMERIC(QueryResult.Reading),1,0))