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

Crystal Reports OR statements 1

Status
Not open for further replies.

BigDaddyE

MIS
Apr 29, 2010
27
US
It appears that my 'OR' statements never really work in Crystal XI. Am I doing something wrong, or does a better way exist?

For example I am using this and it is droping items where the episode.refer_date IsNull.

//**************************************
(({episode.refer_date}= CurrentDate)
or
(IsNull({episode.refer_date})))
//**************************************
 
You always have to reference the potential null of a field before referencing any other value of that field, so your formula should be:

(
IsNull({episode.refer_date}) or
{episode.refer_date}= CurrentDate
)

The placement of parens is critical, but you added way too many, and that just confuses things. You want to set off the clauses that belong together.

-LB
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top