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>请如何使其余的两个过滤如果是?任何帮助将不胜感激。