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

If then else in Select Expert 1

Status
Not open for further replies.

ramc2000

Technical User
Nov 8, 2002
60
0
0
GT
I need to be able to select data based on an if then else condition. Like this:

If
{field1}= certain value
then
select records where {field2}="A"
else
select all records

How can I incorporate this logic into the select expert?

PS: I'm using CR XI and Oracle database.
 
Code:
{field1} <> certain value OR 
({field1}= certain value AND {field2}="A")
Cheers,
- Ido

Visual CUT & DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Actually, it could be simplified to:
Code:
{field1} <> certain value OR {field2}="A"
Cheers,
- Ido

Visual CUT & DataLink Viewer:
view, e-mail, export, burst, distribute, and schedule Crystal Reports.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top