在switch语句中构建添加[]到“”封闭值

时间:2017-01-17 21:53:16

标签: switch-statement

我正在使用切换功能编写查询。当我执行查询时,在构建窗口中将值包含在“”中时,Access已在[]中包含了Value语句,并提示我提供一个值。我做错了什么?

关闭构建窗口之前的switch语句是:

OverUnder: Switch([zVAR Days Decision-Open]![Priority Level]="Emergency" 
And [zVAR Days Decision-Open]! [NewDaysToDecision])<=10,”Under”, , [zVAR Days Decision-Open]![Priority Level]="Emergency" 
And [NewDaysToDecision]>10,”Over”, [zVAR Days Decision-Open]![Priority Level]="Level 1" 
And [NewDaysToDecision]<=10,”Under”, [zVAR Days Decision-Open]![Priority Level]="Level 1" 
And [NewDaysToDecision]>10,”Over”, [zVAR Days Decision-Open]![Priority Level]="Level 2" 
And [NewDaysToDecision]<=30,”Under”, [zVAR Days Decision-Open]![Priority Level]="Level 2" 
And [NewDaysToDecision]>30,” Over”, [zVAR Days Decision-Open]![Priority Level]="Level 3" 
And  NewDaysToDecision]<=30,”Under”, [zVAR Days Decision-Open]![Priority Level]="Level 3" 
And [NewDaysToDecision]>30, ”Over”)

我不确定您是否可以使用And语句在switch语句中包含多个条件。这是问题吗?

0 个答案:

没有答案