Dim cols As String = "a." & rkxx.Text.replace(",", ",a.") & iif(rkxx.Text > "" And zcxx.Text > "", ",", "") & zcxx.Text
你还要注意一点,表达式列,也是不能直接使用的,不然也会报错。