CR 9
I have a report created which used to work great. Suddenly, my parameters aren't working right and I don't know why.
For example, when I change the Classification parameter to, say, the value "New Construction", I still get all records. Here's a look at the Formula Workshop.
The date parameters seem to be working alright, but changing the Obligee, Initiator Name, and the rest return records as if "ALL" had been selected.
What am I doing wrong?
Thanks in advance,
Jason Spelts
I have a report created which used to work great. Suddenly, my parameters aren't working right and I don't know why.
For example, when I change the Classification parameter to, say, the value "New Construction", I still get all records. Here's a look at the Formula Workshop.
Code:
(if {?Classification} = "ALL" then True
else if {?Classification} <> "ALL" then
{s_BondTracking;1.Classification} = {?Classification}) and
(if {?Obligee} <> "ALL" then
{s_BondTracking;1.Obligee} = {?Obligee}
else
if {?Obligee} = "ALL" then
True) and
(if {?Initiator Name} <> "ALL" then
{s_BondTracking;1.InitiatorName} = {?Initiator Name}
else
if {?Initiator Name} = "ALL" then
True) and
(if {?Security Type} <> "ALL" then
{s_BondTracking;1.SecurityType} = {?Security Type}
else
if {?Security Type} = "ALL" then
True) and
(if {?Initiating Department} <> "ALL" then
{s_BondTracking;1.InitiatingDept} = {?Initiating Department}
else
if {?Initiating Department} = "ALL" then
True) and
{s_BondTracking;1.EffectiveDate} >= {?EffectiveDateBegin} and
{s_BondTracking;1.EffectiveDate} <= {?EffectiveDateEnd} and
{s_BondTracking;1.ExpirationDate} >= {?ExpirationDateBegin} and
{s_BondTracking;1.ExpirationDate} <= {?ExpirationDateEnd} and
(if {?Bond Type} <> "ALL" then
{s_BondTracking;1.BondType} = {?Bond Type}
else
if {?Bond Type} = "ALL" then
True)
The date parameters seem to be working alright, but changing the Obligee, Initiator Name, and the rest return records as if "ALL" had been selected.
What am I doing wrong?
Thanks in advance,
Jason Spelts