奇怪的访问错误? [英] Weird Access bug?

查看:70
本文介绍了奇怪的访问错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你能告诉我为什么这个Access 2007查询返回超过21,000行,其中6,099为BinNull_YN的值为True

Can you tell me why this Access 2007 query returns over 21,000 rows, with 6,099 having True for the value of BinNull_YN

展开 | < span class =codeLinkonclick =selectAll(this);>选择 | 换行 | 行号

推荐答案

因为当值等于null时,isnull返回true。否则返回false。


当第一个为null时,Nz返回第二个值。否则它返回第一个值。


如果你需要进一步说明我可以告诉我,我可以模拟一个表。
Because isnull returns true when the value is equal to null. Otherwise it returns false.

Nz returns the second value when the first is null. Otherwise it returns the first value.

Let me know if you need further clarification and I can mock up a table.


我错过了什么?为什么第二个查询不返回6099结果?
What am I missing? Why doesn''t the second query return 6099 results?


和Jim一样,我发现查询#1& #3保持一致并提供预期的结果。


我不清楚为什么查询#2只返回一行,按所有逻辑,它应该返回6099。它甚至不像将IsNull()结果比作<>在这种情况下,False会有所不同。
Like Jim, I find queries #1 & #3 to be consistent and to provide results as expected.

What isn''t clear to me is why query #2 returns only one row when, by all logic, it should return 6,099. It''s not even like comparing the IsNull() result as <> False would make a difference in this case.


这篇关于奇怪的访问错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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