Hello All,
I have a VFP database, running on a SQL server. Using Crystal 8.5. It contains a field for Division (DIVNO) and a field for product. There are about 15 products in the table, and several divisions.
The report is to pull ONLY the product called 'PURCHASE' if the parameter DIVNO is = 'P'. Otherwise, all produsts should be in the report.
I have tried a number of things, and am frustrated. I must be missing something here and am hoping someone can give me a clue.
Here is the select:
works for div C
IF {?@tcDivno} ='C' then true
else
{rq_jc_profitability;1.product} = "PURCHASE"
But the above will not work for DIV P, this will work for P but not for C:
Works for div P
IF {?@tcDivno} <>'C' then
{rq_jc_profitability;1.product} = "PURCHASE"
else IF {?@tcDivno} = 'C' then
{rq_jc_profitability;1.product}={rq_jc_profitability;1.product}
I need to get it to work for both! Short of a second report, what can I do?
Thanks in advance.
I have a VFP database, running on a SQL server. Using Crystal 8.5. It contains a field for Division (DIVNO) and a field for product. There are about 15 products in the table, and several divisions.
The report is to pull ONLY the product called 'PURCHASE' if the parameter DIVNO is = 'P'. Otherwise, all produsts should be in the report.
I have tried a number of things, and am frustrated. I must be missing something here and am hoping someone can give me a clue.
Here is the select:
works for div C
IF {?@tcDivno} ='C' then true
else
{rq_jc_profitability;1.product} = "PURCHASE"
But the above will not work for DIV P, this will work for P but not for C:
Works for div P
IF {?@tcDivno} <>'C' then
{rq_jc_profitability;1.product} = "PURCHASE"
else IF {?@tcDivno} = 'C' then
{rq_jc_profitability;1.product}={rq_jc_profitability;1.product}
I need to get it to work for both! Short of a second report, what can I do?
Thanks in advance.