Hypermommy
Programmer
Hi all,
We have a report that did work in Crystal 8.5 but is now not working in 9.0. It acts as if it's not reading the selection criteria correctly and/or not processing the formula correctly. I think it's the formula because when I put a text field in the database to show the @RegionBundle value, it comes up blank when I select a city but when I select "All" it comes up as TRUE.
I've included both below. Anyone see something we're missing?
Selection criteria:
(({?Class Type} = "ALL"
or ({VW_ALCOHOL_RPT.CLASS_ID} = {?Class Type})) and
{VW_ALCOHOL_RPT.DATE_SEIZED} >= {?Start date} and
{VW_ALCOHOL_RPT.DATE_SEIZED} <= {?End Date} and
{CLNT.CLNT_CDE} startswith "40" and
{@Region Bundles} and
isnull({VW_ALCOHOL_RPT.DIS_DATES})
Formula for @RegionBundles
if {?Region } = "Fort Lauderdale Region"
then
{enf_regn.enf_regn_cde} = "FL"
else
if {?Region } = "Fort Myers Region"
then
{enf_regn.enf_regn_cde} in ["SA","FT"]
else
if {?Region } = "Jacksonville Region"
then
{enf_regn.enf_regn_cde} in ["AX","GA","CA"]
else
if {?Region } = "Miami Region"
then
{enf_regn.enf_regn_cde} in ["IA","KW"]
else
if {?Region } = "Orlando Region"
then
{enf_regn.enf_regn_cde} in ["RL","AY","RK"]
else
if {?Region } = "Tampa Region"
then
{enf_regn.enf_regn_cde} in ["TA","CL","AK"]
else
if {?Region } = "Tallahassee Region"
then
{enf_regn.enf_regn_cde} in ["AL","EN","PY","IV"]
else
if {?Region } = "West Palm Beach Region"
then
{enf_regn.enf_regn_cde} in ["ES","FT"]
else
if {?Region } = "Fort Pierce Region"
then
{enf_regn.enf_regn_cde} = "FP"
else
if {?Region } = "ALL"
then
{ENF_REGN.ENF_REGN_CDE} in ["FL","SA","FT","AX","GA","CA","IA","KW","RL","AY",
"RK","TA","CL","AK","AL","EN","PY","IV","ES","FT","FP"]
else
if not isnull({?Region })
then
{ENF_REGN.ENF_REGN_DESC} = {?Region };
-= Hypermommy =-
We have a report that did work in Crystal 8.5 but is now not working in 9.0. It acts as if it's not reading the selection criteria correctly and/or not processing the formula correctly. I think it's the formula because when I put a text field in the database to show the @RegionBundle value, it comes up blank when I select a city but when I select "All" it comes up as TRUE.
I've included both below. Anyone see something we're missing?
Selection criteria:
(({?Class Type} = "ALL"
{VW_ALCOHOL_RPT.DATE_SEIZED} >= {?Start date} and
{VW_ALCOHOL_RPT.DATE_SEIZED} <= {?End Date} and
{CLNT.CLNT_CDE} startswith "40" and
{@Region Bundles} and
isnull({VW_ALCOHOL_RPT.DIS_DATES})
Formula for @RegionBundles
if {?Region } = "Fort Lauderdale Region"
then
{enf_regn.enf_regn_cde} = "FL"
else
if {?Region } = "Fort Myers Region"
then
{enf_regn.enf_regn_cde} in ["SA","FT"]
else
if {?Region } = "Jacksonville Region"
then
{enf_regn.enf_regn_cde} in ["AX","GA","CA"]
else
if {?Region } = "Miami Region"
then
{enf_regn.enf_regn_cde} in ["IA","KW"]
else
if {?Region } = "Orlando Region"
then
{enf_regn.enf_regn_cde} in ["RL","AY","RK"]
else
if {?Region } = "Tampa Region"
then
{enf_regn.enf_regn_cde} in ["TA","CL","AK"]
else
if {?Region } = "Tallahassee Region"
then
{enf_regn.enf_regn_cde} in ["AL","EN","PY","IV"]
else
if {?Region } = "West Palm Beach Region"
then
{enf_regn.enf_regn_cde} in ["ES","FT"]
else
if {?Region } = "Fort Pierce Region"
then
{enf_regn.enf_regn_cde} = "FP"
else
if {?Region } = "ALL"
then
{ENF_REGN.ENF_REGN_CDE} in ["FL","SA","FT","AX","GA","CA","IA","KW","RL","AY",
"RK","TA","CL","AK","AL","EN","PY","IV","ES","FT","FP"]
else
if not isnull({?Region })
then
{ENF_REGN.ENF_REGN_DESC} = {?Region };
-= Hypermommy =-