2010-12-08 41 views
2

我試圖在我的水晶報告中使用以下公式過濾數據庫中的數據,其中一個條件是包含數據,即使這樣,'{vw_CandidateProfile.Type}'爲空或空字符串。但下面的公式不起作用。有任何想法嗎?使用水晶報告選擇記錄,條件爲空

{vw_CandidateProfile.Candidate_Code} = '881225095228' 
AND (
     {vw_CandidateProfile.Type} IN ['NGO','EDU','PRS','PPR','PPS','TTL','OTH'] 
     OR ISNULL({vw_CandidateProfile.Type}) 
    ) 

回答

4

我發現IsNull()字段必須出現在沒有IsNull()字段之前的解決方案。

{vw_CandidateProfile.Type} IN ['NGO','EDU','PRS','PPR','PPS','TTL','OTH'] 
    OR ISNULL({vw_CandidateProfile.Type}) 

成爲

ISNULL({vw_CandidateProfile.Type}) 
    OR {vw_CandidateProfile.Type} IN ['NGO','EDU','PRS','PPR','PPS','TTL','OTH'] 
+0

+1。我今天學到了一些東西! – PowerUser 2010-12-08 13:48:07

0

使用公式:在選擇專家

ToText({vw_CandidateProfile.Type}) = ""