synbios1978
Programmer
I have the following code:
If IsNull({EstEntFolding.Wizard-Option}) Then "" Else
Select {LOQSegment.Segment-ID}[1 To 20]
Case " 1":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 2":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 3":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 4":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 5":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 6":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 7":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 8":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 9":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 10":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 11":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 12":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 13":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 14":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 15":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 16":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 17":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 18":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 19":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 20":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Default :
"";
98% of the time, case " 1" will determine whether the entire part will or will not have the word "Fold" in it. However, we just ran into an example where that is not the case. Case " 1" does not have a Wizard-Option of 0 in it, however, Case " 2" does. When I preview the field in Crystal, it shows the empty value first, then the word "Fold". If there is a "Fold", I want it to display no matter where it comes in at. In many other examples, I use another field and check the maximum value of the above code. However, I'm getting an error when I try to check the maximum value, and it tells me that the field cannot be summarized. I am using Crystal 9. Can anyone give me a workaround for this issue??
Thanks,
Synbios1978
If IsNull({EstEntFolding.Wizard-Option}) Then "" Else
Select {LOQSegment.Segment-ID}[1 To 20]
Case " 1":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 2":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 3":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 4":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 5":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 6":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 7":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 8":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 9":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 10":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 11":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 12":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 13":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 14":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 15":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 16":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 17":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 18":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 19":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Case " 20":
IF Minimum({EstEntFolding.Wizard-Option}) = 0 Then "Fold" Else ""
Default :
"";
98% of the time, case " 1" will determine whether the entire part will or will not have the word "Fold" in it. However, we just ran into an example where that is not the case. Case " 1" does not have a Wizard-Option of 0 in it, however, Case " 2" does. When I preview the field in Crystal, it shows the empty value first, then the word "Fold". If there is a "Fold", I want it to display no matter where it comes in at. In many other examples, I use another field and check the maximum value of the above code. However, I'm getting an error when I try to check the maximum value, and it tells me that the field cannot be summarized. I am using Crystal 9. Can anyone give me a workaround for this issue??
Thanks,
Synbios1978