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!

Using 'Where in' in selection formula

Status
Not open for further replies.

TysonLPrice

Programmer
Jan 8, 2003
859
US
I'm trying to change a 8.5 Crystal report run from VB 6.0 to use multiple columns in a where clause. Current it uses:

rptExceptionsByGroupID;1.RejectionReason} = 'Bwc 100% Emr Cap-Groupable

in a string called strSelectionFormula like this:

.SelectionFormula = strSelectionFormula

I'm trying to change it to:

{rptExceptionsByGroupID;1.RejectionReason} in ( 'Bwc 100% Emr Cap-Groupable' ,'Canceled with BWC' )

The error message shows the string and than the text "The ) is missing"

Can I use the IN clause like that?

 
Hi,
Crystal syntax useds squaue brackets for the IN operator, so try:
Code:
{rptExceptionsByGroupID;1.RejectionReason} in [ 'Bwc 100% Emr Cap-Groupable' ,'Canceled with BWC' ]

[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Hi,
Obviously I meant SQUARE and USES ( Someday I'll proof better [blush]

[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
I looked all over trying to find that.
It worked. Thanks!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top