如何在超过2个表达式生成器的框中添加IIF

时间:2019-02-18 06:19:00

标签: ms-access

我制作了3个文本框...。每个文本框内都有自己的表达式生成器,exp:

txt_box1=IIf([txtperformance]<20000," 0","") 
txt_box2=IIf([txtperformance] Between 20001 And 27999,"12","")
txt_box3=IIf([txtperformance]>28800," 25","")

我如何将这3个元素合并到一个文本框中,或者将它们全部合并到一个表达式构建器中?

1 个答案:

答案 0 :(得分:1)

只需将IIF()合并到一个文本框中:

=IIF([txtperformance] < 20000, "0", 
     IIF([txtperformance] Between 20001 And 27999, "12", "25")
     )