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

Evaluating data when a field does not equal a value 1

Status
Not open for further replies.

crachic

Technical User
Dec 27, 2007
46
US
I am trying to evaluate using a running total. Below is my formula that I have in my evaluate portion of the running total.

if {view_episode_summary_admit.preadmit_admission_date} >= (?Begin Yearly Admit Date}
then ({view_episode_summary_admit.program_code} <> '503' or
{view_episode_summary_admit.program_code} <> '101' or
{view_episode_summary_admit.program_code} <> '100')

My expected output is evaluating all episodes that do not equal 503, 101, or 100.

I know why problem is with the multiple codes I am trying to exclude on the evaluation because when I only exclude the first code (503) my totals are correct.

I am using Crystal Reports 11 if that helps at all.

Thanks in advance for your help.

-crachic
 
Set up the evaluation formula like this:

{view_episode_summary_admit.preadmit_admission_date} >= (?Begin Yearly Admit Date} and
not(
{view_episode_summary_admit.program_code} in ['503','101','100']
)

-LB
 
Thanks LB. I knew it was in my snytax. Great Post!

-crachic
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top