2012-10-13 62 views
0

請根據我的標準修正if語句,如下所示。我收到錯誤消息「您輸入的表達式包含無效語法。您可能輸入的逗號沒有前面的值或標識符「。if語句包含「round」函數

準則: 1.如果mth_sply365值大於「0」且小於「1」,則舍入到小數點後一位。 2.如果mth_sply365值不大於「0」且小於「1」,則循環爲零小數。

IIf([u].[mth_sply365] >0 and <1,Round([u].[mth_sply365],1),Round([u].[mth_sply365],0)) 

由於提前,納撒尼爾

回答

3

我覺得你的說法應該是如下:
IIf([u].[mth_sply365] >0 and [u].[mth_sply365] <1,Round([u].[mth_sply365],1),Round([u].[mth_sply365],0))
[u].[mth_sply365]應在每個條件之前指定。祝你好運。