Switch产生了错误的结果 [英] Switch is generating the wrong results
本文介绍了Switch产生了错误的结果的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我尝试在代码中使用下面提到的这个开关,无论出于何种原因,交换机都会运行,但会在交换机中生成下一个答案而不是正确的答案。
例如:
[days oustanding] = 21生成2
而不是所需的1
和
[天] = 168没有产生任何东西
代替期望的4
我不相信我的操作符不正确,我正在使用它的上下文是一个更新查询。 />
提前感谢您的帮助,
代码:
I try using this below mentioned switch in code and for whatever reason, the switch operates but generates the next answer in the switch instead of the correct one.
For instance:
[days oustanding] = 21 is generating 2
instead of the desired 1
and
[days oustanding] =168 is generating nothing
instead of the desired 4
I do not believe I have the operators incorrect and the context I''m using this in is an update query.
Thank you for any help in advance,
Code:
展开 | 选择 | Wrap | 行号
推荐答案
尝试:
展开 | 选择 | Wrap | 行号
对不起我道歉我做了未指定
[未完成日期]是一个计算表格字段,它生成两个用户输入字段的DateDiff。
Ohh sorry my apologies I did not specify that
[days outstanding] is a calculated table field which generates the DateDiff of two user entered fields.
此外,代码你提供了运行时错误3464。
Also, the code you provided gave a runtime error 3464.
这篇关于Switch产生了错误的结果的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文