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

Crystal XI - Formula criteria ignored. Why? 1

Status
Not open for further replies.

ReillyC

MIS
Feb 6, 2004
114
US

The following formula works great {TABLE_PRODUCT}IN ["TV","VCR","DVD"]THEN 1 ELSE 0
but I needed to modified it. I needed to add one other criteria, date criteria.

IF NOT IS NULL({TABLE_APPLICATION_DATE}) AND {TABLE_TABPRODUCT.CODPRD}IN ["TV","VCR","DVD"]THEN 1 ELSE 0

The problem is that my latest criteria is being ignored completely. It's only displaying the results of this criteria{TABLE_PRODUCT}IN ["TV","VCR","DVD"]THEN 1 ELSE 0

Help

Thanks again,
R
 
Hi,
If {TABLE_APPLICATION_DATE} is actually a Date field, then IsNull may not work..Try

Code:
IF (
{TABLE_APPLICATION_DATE}<> Date(0,0,0) AND {TABLE_TABPRODUCT.CODPRD}IN ["TV","VCR","DVD"]
)
THEN 1
ELSE 0


[profile]

To Paraphrase:"The Help you get is proportional to the Help you give.."
 
Turkbear (TechnicalUser)
Your solution worked great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top