使用具有空条件的水晶报告选择记录

Fir*_*and 3 crystal-reports

我试图在我的水晶报告中使用以下公式过滤数据库中的数据,其中一个条件是包含数据,即使这样,'{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})
    )
Run Code Online (Sandbox Code Playgroud)

Fir*_*and 5

我找到了IsNull()字段必须在没有IsNull()的字段之前的解决方案.

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

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