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

Operators

Status
Not open for further replies.

DanHD

Technical User
Dec 1, 2008
98
NL
hello

in tsql I use operators like:
"where fieldname in (2,5)"
in this case I only get 2 and 5
or
"where fieldname <> (2,5)"
in this case I only gets the value not equel to 2 and 5.

How works this in Crystal? Now I need to repeat the where clausule, like:
"where fieldname 2 or where fieldname = 5".

This can be easier, isn't it?

Dan
 
if you are using a parameter, use the 'One of', it basically translates to an 'in' statement. {fieldname} in [2,5] unless the field is a string then there would be double quotes around the values.
 
thanks

it works.
I didn't about the [] characters.

Dan
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top