2013-04-15 16 views
-1

有一個錯誤:爲表矩陣Group23隱藏表達式包含一個錯誤,輸入字符串的格式不正確隱藏表達了無效的輸入字符串

我沒有creaet這一點,是新來的位置,並有解決所有。
這裏是隱藏式

="Your screening results..." +VBCRLF+VBCRLF+"• Your Body Weight was :" & (Fields!weight_loss.Value) & "lbs" 
+ VBCRLF+ "• Your Body Mass Index (BMI) , which is based on your height and weight, was:" & (Fields!bmi.Value)& " " & "[Healthy Range: 18.5-24.9]" 
+VBCRLF+ "• Your waist circumference was:" & (Fields!waist.Value) & "inches." & "[Healthy Range:]" &IIF(Fields!gender.Value="M",35,40) 
+ VBCRLF+ "• To be in the healthy BMI range , your recommended weightshould be between " & (Fields!goal_wt_low.Value) & "and" &(Fields!goal_wt_high.Value) & "lbs." & "You told us that.." +VBCRLF+VBCRLF+ 
"• With regard to weight loss," & IIF(Fields!weight_loss.Value=1,"you are satisfied with the way you are now and have no desire to change.", IIF(Fields!weight_loss.Value=2,"• you have considered making healthier choices." 
, IIF(Fields!weight_loss.Value=3,"you have seriously considered making healthier choices and are ready to make a change.",IIF(Fields!weight_loss.Value=4,"you have started making healthier choices." 
,IIF(fields!weight_loss.Value=5,"you have already made changes for a healthier lifestyle and are trying to maintain them.",IIF(Fields!weight_loss.Value=99,"you are not sure how satisfied you are with your current body weight.",nothing)))))) 
+1

你還沒有提供太多:這是否總是返回一個錯誤?如果不是,什麼改變了?這是什麼時候返回一個錯誤?哪些部分,特別是您需要幫助? –

+0

我剛剛在星期五在這裏開始,所以我不知道是否總是拋出錯誤。我不知道還有什麼要提供,我提供的參數,然後預覽報告和它的錯誤。該參數來自從數據庫查詢創建的數據集。 – user2283420

+0

什麼版本的SSRS?如果最近的版本,然後開始分解成多個佔位符。 –

回答

2

雖然這是一個很大的數據,我認爲這個問題可能是非常簡單的。我打賭其中一種數據類型不是字符串類型,或者數據庫中的varchar/nvarchar。這基本上是說:「我不能添加到一個數字的字符串,直到你投它。」

我想你只需要添加CSTR()圍繞字段。(東西).Value表達式將它們轉換爲字符串。如果在此之後它仍然在轟炸,我會一次嘗試一塊,並刪除第一個表達式的所有內容。

0

我猜想一個字符串值不是一個隱藏表達式所需的布爾響應。隱藏有2個可接受的答案,正確和錯誤。字符串表達式永遠不會評估爲布爾型響應。

相關問題