DarkCloud2
Programmer
Crystal Reports 8.5
Oracle 9i/ODBC
I have about 75,000 rows of claimant's claims. I am only interested in displaying claimant's who only have award claims. Thus I do not want to display claimant # 001 since that claimant has claims other than AWARD. I have tried to use a global variable in a grouping of claim numbers but have not been sucessful.
My unsucessful formula in the claimants group:
//tried WhileReadingRecords and WhilePrintingRecords
WhilePrintingRecords;
stringVar cClaimNo;
BooleanVar lDisplay;
if cClaimNo <> {claimants} then
(
lDisplay := true;
cClaimNo := {claimants};
);
if {type} in ["BID","PROMOTION"] then
(
lDisplay := false;
);
lDisplay;
Example Data:
claimants type
001 BID
001 AWARD
001 PROMOTION
002 BID
002 AWARD
002 PROMOTION
003 AWARD
003 AWARD
004 BID
004 BID
004 AWARD
004 PROMOTION
Expected Output:
003 AWARD
003 AWARD
Any help would be greatly appreciated.
Thanks, G
Oracle 9i/ODBC
I have about 75,000 rows of claimant's claims. I am only interested in displaying claimant's who only have award claims. Thus I do not want to display claimant # 001 since that claimant has claims other than AWARD. I have tried to use a global variable in a grouping of claim numbers but have not been sucessful.
My unsucessful formula in the claimants group:
//tried WhileReadingRecords and WhilePrintingRecords
WhilePrintingRecords;
stringVar cClaimNo;
BooleanVar lDisplay;
if cClaimNo <> {claimants} then
(
lDisplay := true;
cClaimNo := {claimants};
);
if {type} in ["BID","PROMOTION"] then
(
lDisplay := false;
);
lDisplay;
Example Data:
claimants type
001 BID
001 AWARD
001 PROMOTION
002 BID
002 AWARD
002 PROMOTION
003 AWARD
003 AWARD
004 BID
004 BID
004 AWARD
004 PROMOTION
Expected Output:
003 AWARD
003 AWARD
Any help would be greatly appreciated.
Thanks, G