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

CR XI - SELECT EXPERT

Status
Not open for further replies.

CRXIuser2005

Programmer
Sep 23, 2005
135
US
I'm using the following "composite expression" in my select expert and it is NOT working:

{@File Type} IN ["Bankruptcy Files"] and
{Command.WIP_Cost_Dollar_Value} > 0.00 and
{Command.System Closed Date} >( Date (2005, 11,30)-45) or
isnull({Command.System Closed Date})

IT is ignoring the "Bankruptcy Files" text designator???

Any ideas why?

This is based on a table created via UNION ALL STATMENT...JUST FYi..

Thank you.

MV

"A man is only as happy, as he makes up his mind to be....
 
Hi,
What is in the @File Type formula?


[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Try:

(
isnull({Command.System Closed Date}) or
{Command.System Closed Date} > Date (2005, 11,30)-45
) and
{@File Type} = "Bankruptcy Files" and
{Command.WIP_Cost_Dollar_Value} > 0.00

The null check should be first. Also when using "or" clauses, you must be careful to use parens to show the intended logic. Not sure why you are not hardcoding 11/30 -45 days, but maybe you intend to plug in a parameter?

-LB
 
Thanks for you expertise!!!!

Thank you.

MV

"A man is only as happy, as he makes up his mind to be....
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top