I have the following record selection formula:
{DA_DAMAST.DM_CASE} = {?Case Number} or
{DA_DAPDEF.DU_NAM} = {?Defendant Name} or
soundex({DA_DAPDEF.DU_NAM_SUR1})=soundex({?Last Name})
and am trying to make thing run faster.
Without the soundex functions, the report is very quick, however with it, the darn thing runs for nearly a minute.
What I'm trying to do, is give my staff a summary of case information (based on their input of either the case number / the defendants name (as it appears in the data) / or just a soundex of the last name (mis-spells included).
Can the record selection formula be made to ignore the soundex if cause number or defendant name are populated?
I've tried the following, but it has the same result
If {?Last Name}="" then
{DA_DAMAST.DM_CASE} = {?Cause Number} or
{DA_DAPDEF.DU_NAM} = {?Defendant Name} or
else
soundex({DA_DAPDEF.DU_NAM_SUR1})=soundex({?Last Name})
As always, your thoughts are welcome.
James
{DA_DAMAST.DM_CASE} = {?Case Number} or
{DA_DAPDEF.DU_NAM} = {?Defendant Name} or
soundex({DA_DAPDEF.DU_NAM_SUR1})=soundex({?Last Name})
and am trying to make thing run faster.
Without the soundex functions, the report is very quick, however with it, the darn thing runs for nearly a minute.
What I'm trying to do, is give my staff a summary of case information (based on their input of either the case number / the defendants name (as it appears in the data) / or just a soundex of the last name (mis-spells included).
Can the record selection formula be made to ignore the soundex if cause number or defendant name are populated?
I've tried the following, but it has the same result
If {?Last Name}="" then
{DA_DAMAST.DM_CASE} = {?Cause Number} or
{DA_DAPDEF.DU_NAM} = {?Defendant Name} or
else
soundex({DA_DAPDEF.DU_NAM_SUR1})=soundex({?Last Name})
As always, your thoughts are welcome.
James