0
我有一個.rpt文件,與視圖數據源。我有四個參數用於過濾選擇。我寫下了我的選擇公式,如下所示。嵌套,如果其他條件在水晶報告
if ({?actype} <> "All") OR ({?actype} <> "All") OR ({?collectorname} <> "All") OR ({?batchno}<> "All") Then
(
if {?actype} <> "All" Then
{CollectorPerformance.accountType} = {?actype};
if {?collectorname} <> "All" Then
{CollectorPerformance.realname} = {?collectorname};
if {?batchno} <> "All" Then
{CollectorPerformance.batchno} = {?batchno}
and
{CollectorPerformance.clientid} = {?clientid}
and
Date({CollectorPerformance.paymentdate}) >= Date({?from})
and
Date({CollectorPerformance.paymentdate}) <= Date({?to})
)
我的問題與上面的公式,它不會過濾realname和actType。我明白原因是因爲關鍵詞「和」缺失。然而,它正確過濾batchno>請如何使其餘的兩個過濾如果是?任何幫助將不勝感激。