Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

issue with parameter

Status
Not open for further replies.

jschill2628

Programmer
Nov 3, 2009
156
US
I am having an issue with my parameter. I have never encountered this before. I have linked a code table to my main table, as I normally would, this works for a cross tab I have built into the crystal report (Crystal XI). The formula I have in my report is

{ReviewerSeverity}:
{ReviewerSeverity.CODE} + "-" + {ReviewerSeverity.CODE_DESC}

Now when I try to create a prompt {?Severity}, I choose dynamic prompt, then I choose new. For the value I choose {ReviewerSeverity.CODE}, and for the description I choose {ReviewerSeverity.CODE_DESC}.

Then I go the Selection Criteria and say {IRSCLAIMSA1.SA153} = {?Severity}

This is how I would normally do a simple prompt like this. The problem is that instead of just getting the ten values I need (minor, major, etc….) I am getting every code and code description in the whole code table.

What am I doing wrong?

Thanks in advance!
 
What is your entire record selection formula (report->selection formula->record? I'm wondering if you have an "or" statement in there that is being misinterpreted.

-LB
 
good guess, but nope.....

LowerCase ({USRMAST.EMAIL2}) = LowerCase ({@UserName})
and {IRSCLAIM.create_DT} = {?Report Date}
and {IRSCLAIM.LOCATION} = {?Location}
and {IRSCLAIM.SPECIAL4} = {?Event Subtype}
and {IRSCLAIMSA1.SA153} = {?Severity}
and {IRSCLAIM.COVERAGE} = "ADR"
and {Subtype.CODE_TYPE} = "11"
and {IRSCLAIMSA1.SA151} = "3"
and {IRSCLAIMSA1.SA152} = "3"
and {PrimaryInjury.CODE_TYPE} = "26"
and {ReviewerSeverity.CODE_TYPE} = "100084"
and {IRSCODE_LineOfBusiness_A.CODE_TYPE} = "45"
and {IRSCODE_LineOfBusiness_B.CODE_TYPE} = "46"
and {IRSCODE_LineOfBusiness_C.CODE_TYPE} = "18"
and {IRSCODE_Outcome.CODE_TYPE} = "100090
 
Is the parameter set up to allow multiple values and is it a string parameter? If so, add a formula to your report:

join({?Severity},",")

...and then add these fields to a detail_b section (suppress your detail_a section):

{IRSCLAIMSA1.SA153} {ReviewerSeverity.CODE}{ReviewerSeverity.CODE_DESC}

...and run the report with your current selection formula. Then report back with the results.

-LB
 
I got the same reults, as before.

I was going to put in the code and code description in by hand instead of pulling from the field, but I didn't want to do this incase down the road we change a description, or add more code I would 't have to change 70 reports.
 
Please show the results when you did what I requested.

-LB
 
prompt:
00- Near Miss
01- Midnight
02- Outpatient
03- Family Member or Caregiver
04- Beth O'Brien
05- Contractor
06- Concussion
07- 07:00
08- Supplemental Ben. (FL only)/ Supplemental Earrings.....
09- Death


Detailed section B:
SA153 Code Code DESC
01 01 No Harm
02 02 No Detectable Harm
02 02 No Detectable Harm
02 02 No Detectable Harm
03 03 Minimal - Temporary Harm
03 03 Minimal - Temporary Harm
02 02 No Detectable Harm
03 03 Minimal - Temporary Harm
03 03 Minimal - Temporary Harm
02 02 No Detectable Harm
02 02 No Detectable Harm
03 03 Minimal - Temporary Harm
03 03 Minimal - Temporary Harm
01 01 No Harm
03 03 Minimal - Temporary Harm
03 03 Minimal - Temporary Harm
03 03 Minimal - Temporary Harm
02 02 No Detectable Harm
05 05 Moderate - Temporary Harm
05 05 Moderate - Temporary Harm
03 03 Minimal - Temporary Harm
03 03 Minimal - Temporary Harm
03 03 Minimal - Temporary Harm
03 03 Minimal - Temporary Harm
05 05 Moderate - Temporary Harm
03 03 Minimal - Temporary Harm
03 03 Minimal - Temporary Harm
03 03 Minimal - Temporary Harm
01 01 No Harm
01 01 No Harm
03 03 Minimal - Temporary Harm
05 05 Moderate - Temporary Harm
03 03 Minimal - Temporary Harm
02 02 No Detectable Harm
 
It looks like maybe your codes table isn't linked to your other table. Link {ReviewerSeverity.CODE} to {IRSCLAIMSA1.SA153} in the database expert.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top