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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

GROUP SPECIFIED ON A NON-RECURRING FIELD.

Status
Not open for further replies.

dellguy

Programmer
Aug 14, 2001
70
CA
CRXI

I created a formula that originally contain a value from one of 3 table fields based on a parameter and this was used for report grouping.

formula:

IF {?GROUP} = 'C'
THEN TRIM({ARINVT.CLASS}) + " : " + {ARINVT_CLASS.DESCRIP}
ELSE
IF {?GROUP} = 'P'
THEN TRIM({PROD_CODE.CODE}) + " : " + {PROD_CODE.DESCRIP}
ELSE
IF {?GROUP} = 'M'
THEN {@Minor Group}


This was fine. Now I want to add a 4th parameter for a value that can only be derived from a subreport. I know if you try to use a shared variable in a formula that is used as a group, you get the subject error.

Is anyone aware of a way to accomplish this some other way ?

Larry
 
You can't group or sort based on a subreport shared variable, so you would have to find a way to eliminate the need for a subreport.

-LB
 
Exactly what I was thinking. I've written a COMMAND file to get the same output as the subreport. Complex SQL not my forte but I'll figure it out.

Thanks LB.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top