ready4data
Programmer
Hi All,
Crystal 8.5 SQL server
These 2 parameters work by themselves. I'm trying to combine them so either one or the other can be used in the report.
1.
(if {?Wildcard Dealer} <> "All"
then {HISTORY.ACCOUNTNAME} like "*" + {?Wildcard Dealer} + "*"
else if {?Wildcard Dealer} = "All"
Then True)
2.
(if {?dealer} <> "_All"
then {HISTORY.ACCOUNTNAME} = left({?Dealer},(InStr({?Dealer}," in ")-1)) and
{ADDRESS.CITY}= Mid({?Dealer},InStr({?Dealer}, " in ")+4)
else if {?dealer} ="_All"
Then True)
If I just use an "and" The parameters don't work
Help would be appreciated.
Thanks,
Scott
Crystal 8.5 SQL server
These 2 parameters work by themselves. I'm trying to combine them so either one or the other can be used in the report.
1.
(if {?Wildcard Dealer} <> "All"
then {HISTORY.ACCOUNTNAME} like "*" + {?Wildcard Dealer} + "*"
else if {?Wildcard Dealer} = "All"
Then True)
2.
(if {?dealer} <> "_All"
then {HISTORY.ACCOUNTNAME} = left({?Dealer},(InStr({?Dealer}," in ")-1)) and
{ADDRESS.CITY}= Mid({?Dealer},InStr({?Dealer}, " in ")+4)
else if {?dealer} ="_All"
Then True)
If I just use an "and" The parameters don't work
Help would be appreciated.
Thanks,
Scott