ready4data
Programmer
I'm using Crystal 8.5 and connecting to SQL Server.
I'm using multiple parameters in the select expert and are having problems with one set of parameters. I've removed the working code (except for date range)to try to troubleshoot the problem area.
Here is the formula:
The result code parameter is set up for multiple values. If I select All or leave it blank it returns no records. If I select 1 or more result codes it functions correctly.
There are certain codes that just pertain to dealer visits so I tried to preset those on the 4th line if "All Dealer Visit Codes" is selected but that doesn't work either.
Do I have the If statements in the wrong order or am I completely off in my formula.
Its my birthday so if someone could piont me in the right direction that would be a great present.
Scott
I'm using multiple parameters in the select expert and are having problems with one set of parameters. I've removed the working code (except for date range)to try to troubleshoot the problem area.
Here is the formula:
Code:
(if {?Result Code} <> "All" or {?Result Code} <> "All Dealer Visit Codes"
then{HISTORY.RESULT} = {?Result Code}
else if {?Result Code} = "All Dealer Visit Codes"
then {HISTORY.RESULT} in ["CIF IFAP Support Activity", "CPM PMO Support Activity", "DNB Dealer/Regional Nuts/Bolts", "DTA Dealer Technical Assist", "DPR Dealer Plan & Review Session", "PRO New Dealer Prospective", "RMV RMAP Visit", "SEM Product Seminar", "SSA Sales Support Activity", "TIE Technical Information Exchange", "WBX Web-Ex"]
else if {?Result Code} = "All" or {?Result Code} = ""
then True) and
{HISTORY.RESULT} in ["APP Auth. Printer Provider", "ARI Activity Report Input", "CIF IFAP Support Activity", "CPM PMO Support Activity", "DNB Dealer/Regional Nuts/Bolts", "DPL Product Launch Support", "DPR Dealer Plan & Review Session", "DTA Dealer Technical Assist", "OTH Other Dealer Visit Activity", "PRO New Dealer Prospective", "RMV RMAP Visit", "SEM Product Seminar", "SSA Sales Support Activity", "TIE Technical Information Exchange", "TRW Technician Ride With", "TSS Trade Show Support", "WBX Web-Ex"] and
{HISTORY.ORIGINALDATE} = {?Date Range}
There are certain codes that just pertain to dealer visits so I tried to preset those on the 4th line if "All Dealer Visit Codes" is selected but that doesn't work either.
Do I have the If statements in the wrong order or am I completely off in my formula.
Its my birthday so if someone could piont me in the right direction that would be a great present.
Scott